Google Tag Manager (GTM) for Magento 2 with Advance Data Layer
Type
magento2-module
License
OSL-3.0, AFL-3.0
Requires
magento/framework
100.0.*|100.1.*|101.0.*
magento/module-backend
100.0.*|100.1.*|100.2.*
php
~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0
Requires (dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
Google Tag Manager for Magento2 with Data Layer
Google Tag Manager allows you to quickly and easily add or update AdWords, Google Analytics, Facebook Tags and other code snippets on your website without edit to your magento 2 codebase.
Log into your Magento 2 Admin, then goto Stores -> Configuration -> MagePal -> Google Tag Manager and enter your GTM account credentials
### Data layer attributes
pageType (i.e catalog_category_view)
list (cart, category, detail, other)
Customer
customer.isLoggedIn
customer.id
customer.groupId
Category
category.id
category.name
category.path
Product
product.id
product.name
product.sku
product.path
Cart
cart.hasItems
cart.items[].sku
cart.items[].name
cart.items[].price
cart.items[].quantity
cart.total
cart.itemCount
cart.itemQty
cart.hasCoupons
cart.couponCode
Order
transactionId
transactionAffiliation
transactionTotal
transactionShipping
transactionTax
transactionCouponCode
transactionDiscount
transactionSubTotal
transactionProducts[].sku
transactionProducts[].name
transactionProducts[].price
transactionProducts[].quantity
Contribution
Want to contribute to this extension? The quickest way is to open a pull request on GitHub.
Support
If you encounter any problems or bugs, please open an issue on GitHub.
Need help setting up or want to customize this extension to meet your business needs? Please email [email protected] and if we like your idea we will add this feature for free or at a discounted rate.