This Magento 2 extension adds Google Tag Manager to your Magento 2 site, allowing you to manage all your Google tags (Adwords, Analytics) centrally through the Google Tag Manager site.
When you want to track conversions in your Magento checkout, our extension helps out as well: It adds the relevant information to all your checkout and cart pages. Do you want to know which variables are on the success page? Use our Checkout Tester extension to preview that page and view its HTML source.
This extension works only under Magento 2. Do not try to install this extension if you are only using Magento 1.x.
The extension has the following configuration options:
This extension adds the following attributes automatically to the data layer. There is no backend option to tune this, so if you want to make changes, change the PHTML templates in your own theme.
pageType= Original page route (module/controller/action)
customerLoggedIn= Whether the customer has logged in
customerId= ID of the customer
customerGroupId= Customer group ID
customerGroupCode= Customer group code
categoryId= Category ID
categoryName= Category name
categoryProducts= Listing of top 3 products
productId= Product ID
productName= Product name
productSku= Product SKU
productPrice= Product price
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
Note that on a product page with an URL that also identifies a category, both the product attributes and the category attributes are added.