chameleon-system-private/google-tag-manager-shop-bundle
Adds ecommerce data to google tag manager
Requires
- chameleon-system-private/google-tag-manager-bundle: ~8.0.0
- 8.47.1
- 8.47.0
- 8.0.x-dev
- 8.0.48
- 8.0.46
- 8.0.45
- 8.0.44
- 8.0.43
- 8.0.42
- 8.0.41
- 8.0.40
- 8.0.39
- 8.0.38
- 8.0.37
- 8.0.36
- 8.0.35
- 8.0.34
- 8.0.33
- 8.0.32
- 8.0.31
- 8.0.30
- 8.0.29
- 8.0.28
- 8.0.27
- 8.0.26
- 8.0.25
- 8.0.24
- 8.0.23
- 8.0.22
- 8.0.21
- 8.0.20
- 8.0.19
- 8.0.18
- 8.0.17
- 8.0.16
- 8.0.15
- 8.0.14
- 8.0.13
- 8.0.12
- 8.0.11
- 8.0.10
- 8.0.9
- 8.0.8
- 8.0.7
- 8.0.6
- 8.0.5
- 8.0.4
- 8.0.3
- 8.0.2
- 8.0.1
- 7.1.x-dev
- 7.1.140
- 7.1.139
- 7.1.138
- 7.1.137
- 7.1.136
- 7.1.135
- 7.1.134
- 7.1.133
- 7.1.132
- 7.1.131
- 7.1.130
- 7.1.129
- 7.1.128
- 7.1.127
- 7.1.126
- 7.1.125
- 7.1.124
- 7.1.123
- 7.1.122
- 7.1.121
- 7.1.120
- 7.1.119
- 7.1.118
- 7.1.117
- 7.1.116
- 7.1.115
- 7.1.114
- 7.1.113
- 7.1.112
- 7.1.111
- 7.1.110
- 7.1.109
- 7.1.108
- 7.1.107
- 7.1.106
- 7.1.105
- 7.1.104
- 7.1.103
- 7.1.102
- 7.1.101
- 7.1.100
- 7.1.99
- 7.1.98
- 7.1.97
- 7.1.96
- 7.1.95
- 7.1.94
- 7.1.93
- 7.1.92
- 7.1.91
- 7.1.90
- 7.1.89
- 7.1.88
- 7.1.87
- 7.1.86
- 7.1.85
- 7.1.84
- 7.1.83
- 7.1.82
- 7.1.81
- 7.1.80
- 7.1.79
- 7.1.78
- 7.1.77
- 7.1.76
- 7.1.75
- 7.1.74
- 7.1.73
- 7.1.72
- 7.1.71
- 7.1.70
- 7.1.69
- 7.1.68
- 7.1.67
- 7.1.66
- 7.1.65
- 7.1.64
- 7.1.63
- 7.1.62
- 7.1.61
- 7.1.60
- 7.1.59
- 7.1.58
- 7.1.57
- 7.1.56
- 7.1.55
- 7.1.54
- 7.1.53
- 7.1.52
- 7.1.51
- 7.1.50
- 7.1.49
- 7.1.48
- 7.1.47
- 7.1.46
- 7.1.45
- 7.1.44
- 7.1.43
- 7.1.42
- 7.1.41
- 7.1.40
- 7.1.39
- 7.1.38
- 7.1.37
- 7.1.36
- 7.1.35
- 7.1.34
- 7.1.33
- 7.1.32
- 7.1.31
- 7.1.30
- 7.1.29
- 7.1.28
- 7.1.27
- 7.1.26
- 7.1.25
- 7.1.24
- 7.1.23
- 7.1.22
- 7.1.21
- 7.1.20
- 7.1.19
- 7.1.18
- 7.1.17
- 7.1.16
- 7.0.x-dev
- 7.0.25
- 7.0.24
- 7.0.23
- 7.0.22
- 7.0.21
- 7.0.20
- 7.0.19
- 7.0.18
- 7.0.17
- 7.0.16
- 7.0.15
- dev-main
- dev-64817-update-tag-manager-bundle
- dev-66480-paypal-button-integration-wip
- dev-64992-campaign-tracking-bundle
- dev-65797-paypal-button-integration
- dev-65797-paypal-checkout-7.1.x
README
Bundle adds e-commerce data to the base implementation of the GoogleTagManagerBundle.
Setup
Follow this step by step guide to set up GoogleTagManagerShop.
Prerequisites
For standard prerequisites, see the Readme file in the GoogleTagManagerBundle.
Install Bundle
In the project's composer.json, require chameleon-system/google-tag-manager-shop-bundle in the version that matches the Chameleon
version used and run composer update.
Add ChameleonSystem\GoogleTagManagerShopBundle\ChameleonSystemGoogleTagManagerShopBundle() to the AppKernel.
Run CMS updates.
Configuration
For standard configuration, see the Readme file in the GoogleTagManagerBundle.
To enable product list click tracking set enableProductClickTracking to true in the config. Product list click tracking requires jQuery.
Tracked Data
For standard data, see the Readme file in the GoogleTagManagerBundle. This bundle tracks product lists, product list clicks, product detail, add/remove basket, checkout, purchase.
All Pages
-currency
Product List
- ecommerce
- impressions
- id
- name
- price
- priceIncludingVat
- brand
- category
- position
- list
- realId
- sale
- variant
Product List Click
- ecommerce
- currencyCode
- click
- actionField
-list
- products
- id
- name
- price
- brand
- category
- position
Product Detail
- ecommerce
- detail
- products
- id
- name
- price
- priceIncludingVat
- brand
- category
- sale
- category
- variant
Add/Remove Basket
- ecommerce
- add/remove
- products
- id
- name
- price
- priceIncludingVat
- brand
- category
- quantity
- availability
- sale
- variant
Checkout
- ecommerce
- checkout
- actionField
- step
- option
- products
- id
- name
- price
- priceIncludingVat
- brand
- category
- position
- quantity
- availability
- sale
- variant
Purchase
- ecommerce
- purchase
- actionField
- id
- revenue
- tax
- shipping
- shippingGross
- discountTotalGross
- total
- totalGross
- affiliateCode
- paymentMethod
- buyerEmail
- coupon
- products
- id
- purchaseId
- name
- price
- priceIncludingVat
- brand
- category
- categoryList
- position
- quantity
- availability
- sale
- variant
Configuration for Google Analytics via GoogleTagManager
1. Add GoogleAnalytics tracking id variable which contains your GoogleAnalytics ID
2. Add GoogleAnalytics Tag with tag type Google Analytics: Universal Analytics
- 2.1 Track Type = Page View
- 2.2 Google Analytics Settings = Choose variable from first step
- 2.3 Enable Enhanced Ecommerce Features = true
- 2.4 Enable Use Data Layer
- 2.5 Choose trigger for all pages
3. If you want to add click tracking, add a new tigger and a new tag
- 3.1 Add new trigger with Trigger Type Custom Event and Event name productClick
- 3.2 Add new tag with tag type Google Analytics: Universal Analytics
- 3.2.1 Track Type = Event
- 3.2.2 Category = eCommerce
- 3.2.3 Action = Product List click
- 3.2.4 Google Analytics Settings = Choose variable from first step
- 3.2.5 Enable Enhanced Ecommerce Features = true
- 3.2.6 Enable Use Data Layer
- 3.2.6 Choose trigger created in previous step
4. Configure GoogleAnaytics
- 4.1 Enable E-Commerce
- 4.2 Enable Enhanced E-Commerce
- 4.3 Add checkout step you want to track at the Checkout Labeling. Use the same order as in the shop