Excerpt |
---|
Google's Tag Manager allows administrators and digital marketers to track user behaviour and improve conversion rates on their websites. To this end, Commerce Vision websites on version 3.87+ now have tracking functionality enabled out of the box, pushing rich data on nearly every site event. This guide details the data sent for various events, which can then be used with Tag Manager's Remarketing and Enhanced eCommerce functions. |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "enhancedEcomm", "event_type": "impression", "ecommerce": { "currencyCode": "AUD", "impressions": [ { "name": "Product Description", "id": "ProductCode", "list": "list name", "category": "/first level/second level/third level", "brand": "brand name", "position": 1, "price": "99.99" } ] } } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "enhancedEcomm", "event_type": "impression", "ecommerce": { "currencyCode": "AUD", "detail": { "actionField": { "list": "list name" }, "products": [ { "name": "Product Description", "id": "ProductCode", "category": "/first level/second level/third level", "brand": "brand name", "price": "99.99" } ] } } } |
...
- event
- Name of event
- list
- the list from which the product resides
- Product List
- Search Results
- Items Recently Viewed
- Campaign - Campaign Description
- CrossSell
- UpSell
- User Favourites
- Prior Purchases
- Cart Item
- the list from which the product resides
- name
- the product description
- id
- the product code
- category
- the primary category for the product
- brand
- the product brand
- price
- the product price
- only sent through if hide pricing on the role is not enabled
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "productClick", "ecommerce": { "click": { "actionField": { "list": "list name" }, "products": [ { "name": "Product Description", "id": "ProductCode", "category": "/first level/second level/third level", "brand": "brand name", "price": "99.99" } ] } } } |
...
pushed on every page
Code Block | ||||
---|---|---|---|---|
| ||||
{ "User_ID": "unique user id" } |
...
Widget based questionnaires have a redirect URL after form submission
Code Block | ||||
---|---|---|---|---|
| ||||
{ "virtualURL": "thank you URL" } |
...
checkout steps
Code Block | ||||
---|---|---|---|---|
| ||||
{ "event": "checkout", "event_type": "checkout", "ecommerce": { "checkout": { "actionField": { "step": 1 }, "products": [ { "name": "Product Description", "id": "ProductCode", "category": "/first level/second level/third level", "brand": "brand name", "price": "99.99" } ] } } } |
...
- step
the step number (from the checkout steps above)
- option
- The selected option at this step, for example the freight option selected at option 3 or payment method at option 4
Code Block | ||||
---|---|---|---|---|
| ||||
{ "event": "checkoutOption", "event_type": "checkout", "ecommerce": { "checkout_option": { "actionField": { "step": 1, "option": "Cart" } } } } |
...
Pushed on successful submission of an order
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "enhancedEcomm", "event_type": "payment", "ecommerce": { "purchase": { "actionField": { "id": 100000000, "revenue": 99.99, "tax": 9.99, "shipping": 10.00 } }, "products": [ { "name": "Product Description", "id": "ProductCode", "category": "/first level/second level/third level", "price": "99.99" } ] } } |
Login Success Anchor ecomlogin ecomlogin
Login Success data is pushed on a any successful login
...
.
- The 'event' always = "login"
- The 'widgetName' = that of the widget used to initiate the login
Code Block | ||||
---|---|---|---|---|
| ||||
{ "event": "login", "widgetName": "widget-name" } |
...
Logout Success Anchor ecomlogout ecomlogout
Logout Success data is pushed on a any successful logout
...
.
- The 'event' always = "logout"
- The 'widgetName' = that of the widget used to initiate the logout
Code Block | ||||
---|---|---|---|---|
| ||||
{ "event": "logout", "widgetName": "widget-name" } |
...
- pageType
- The page the product was added from
- Product List
- Search Results
- Product Details
- The page the product was added from
- list
- The list the product was added from
- Product List
- Search Results
- Product Compare
- Items Recently Viewed
- Campaign - Campaign Description
- CrossSell
- UpSell
- User Favourites
- Prior Purchases
- Product Details
- Cart Fast Order
- Quick Order Entry
- The list the product was added from
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "addToCart", "ecommerce": { "currencyCode": "AUD", "add": { "products": [ { "name": "Product Description", "id": "ProductCode", "category": "/first level/second level/third level", "quantity": 1, "brand": "brand name", "price": "99.99" } ] } }, "pageType": "Product List", "list": "Product List" } |
...
pushed when a product is removed from the cart
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "removeFromCart", "ecommerce": { "currencyCode": "AUD", "remove": { "products": [ { "name": "Product Description", "id": "ProductCode", "category": "/first level/second level/third level", "quantity": 1, "price": "99.99" } ] } } } |
...