Google Tag Manager Data Layers


Included with Lumarix

Yes

License Type

OSL

Requires external subscription?

No

User Manual Link

 


The extension has the following configuration options:

  • Enabled: When this is set to No, the extension does not work.
  • Container Public ID: The ID of your Google Tags container.

Data layer attributes
This extension adds the following attributes automatically to the data layer. There is no backend option to tune this. Changes to the Data Layer structure must be made at a theme level.

  • Generic
    • pageType = Original page route (module/controller/action)
  • Customer
    • customerLoggedIn = Whether the customer has logged in
    • customerId = ID of the customer
    • customerGroupId = Customer group ID
    • customerGroupCode = Customer group code
  • Category
    • categoryId = Category ID
    • categoryName = Category name
    • categoryProducts = Listing of top 3 products
  • Product
    • productId = Product ID
    • productName = Product name
    • productSku = Product SKU
    • productPrice = Product price
  • Order (only the single last order, and only if no quote available)
    • transactionId = Order ID
    • transactionDate = Order date
    • transactionAffiliation = Website name
    • transactionTotal = Order total
    • transactionTax = Order tax
    • transactionShipping = Shipping amount
    • transactionPayment = Payment method
    • transactionCurrency = Currency of website
    • transactionPromoCode = Promotional code used for order
    • transactionProducts = Listing of all items in cart
      • sku = Item SKU
      • name = Item name
      • price = Item price
      • category = Listing of category IDs
      • quantity = Item quantity
  • Quote (current shopping cart)
    • Same as with order, except without shipping and payment


Note that on a product page with an URL that also identifies a category, both the product attributes and the category attributes are added.