Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

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
languagejs
titleSample Product Impression data
collapsetrue
{
	"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
languagejs
titleSample Product Detail Impression data
collapsetrue
{
	"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
  • 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
languagejs
titleSample Product Click data
collapsetrue
{
	"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
languagejs
titleSample User Detail data
{
	"User_ID": "unique user id"
}

...

Widget based questionnaires have a redirect URL after form submission

Code Block
languagejs
titleSample Questionnaire data
{
	"virtualURL": "thank you URL"
}

...

checkout steps

Code Block
languagejs
titleSample Checkout Steps data
{
	"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
languagejs
titleSample Checkout Option data
{
	"event": "checkoutOption",
	"event_type": "checkout",
	"ecommerce": {
		"checkout_option": {
			"actionField": {
				"step": 1,
				"option": "Cart"
			}
		}
	}
}

...

Pushed on successful submission of an order

Code Block
languagejs
titleSample Transaction data
collapsetrue
{
	"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"
		}
		]
	}
}

Anchor
ecomlogin
ecomlogin
Login Success

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
languagejs
titleSample Login Success data
{
	"event": "login",
	"widgetName": "widget-name"
}

...

Anchor
ecomlogout
ecomlogout
Logout Success

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
languagejs
titleSample Logout Success data
{
	"event": "logout",
	"widgetName": "widget-name"
}

...

  • pageType
    • The page the product was added from
      • Product List
      • Search Results
      • Product Details
  • 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
Code Block
languagejs
titleSample Add To Cart data
collapsetrue
{
	"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
languagejs
titleSample Remove From Cart data
collapsetrue
 {
	"event": "removeFromCart",
	"ecommerce": {
		"currencyCode": "AUD",
		"remove": {
			"products": [
			{
				"name": "Product Description",
				"id": "ProductCode",
				"category": "/first level/second level/third level",
				"quantity": 1,
				"price": "99.99"
			}
			]
		}
	}
}

...