Versions Compared

Key

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

...

Anchor
ecomcheckout
ecomcheckout
e. Checkout Steps & Options

PropertyValueNotes
event'checkout' 
event_type'checkout' 
step

The checkout step number:

  • Step 1 - going to cart
  • Step 2 - attempting checkout, but login required
  • Step 3 - selecting delivery option
  • Step 4 - selecting payment option
  • Step 5 - submitting the order

 

Steps 3 & 4 will trigger additional 'Product Option' data to be pushed, in the form of the option selected at this step.

For example, the freight option selected at Step 3 or the payment method selected at Step 4 (sample provided below).

productsThe products in the cartStandard product data will be pushed for each product in the cart (e.g. name, id, category, brand, price).
Code Block
languagejs
titleSample Checkout Steps data
collapsetrue
{
	"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"
			}
			]
		}
	}
}

checkout options

...

Checkout Options

Checkout Option data is pushed whenever the Checkout Step value is 3 or 4. 

PropertyValueNotes
event'checkoutOption' 
event_type'checkout' 
step3 or 4Value determined by the step number in 'Checkout Steps' data above.
optionThe option selected

...

at this step

...

For example - 'pickup' at Step 3 or 'BPAY' at Step 4.
Code Block
languagejs
titleSample Checkout Option datacollapsetrue
{
	"event": "checkoutOption",
	"event_type": "checkout",
	"ecommerce": {
		"checkout_option": {
			"actionField": {
				"step": 14,
				"option": "CartBPAY"
			}
		}
	}
}

 

 

Anchor
ecomtrans
ecomtrans
Transactionsf. Transactions

Product Transaction data is pushed on successful submission of an order. 

PropertyValueNotes
event'enhancedEcomm' 
event type'payment'TBC - always 'payment'?purchase / actionFieldTBC 
nameThe product descriptionRepeated for each product in the transaction.
idThe product codeRepeated for each product in the transaction.
categoryThe product's primary categoryRepeated for each product in the transaction.
priceThe product price (nett price for 1)Repeated for each product in the transaction.
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 g. Login Success

Login Success data is pushed on any successful login.  

...

Anchor
ecomlogout
ecomlogout
Logout h. Logout Success

Logout Success data is pushed on any successful logout.  

...

Anchor
ecomaddtocart
ecomaddtocart
Add i. Add to Cart

pushed on successful add to cart

...

Anchor
ecomremovefromcart
ecomremovefromcart
Remove j. Remove from Cart

pushed when a product is removed from the cart

...

Anchor
ecomcartupdate
ecomcartupdate
Cart k. Cart Updated

pushed when cart quantities are changed.

...

Anchor
ecomvieworder
ecomvieworder
View l. View Order

Pushed when an order is viewed on the order tracking page

...

Anchor
ecomviewtemplate
ecomviewtemplate
View m. View Template

Pushed when a template is viewed on the order templates page

Code Block
languagejs
{
	"virtualURL": "/OrderTemplates/Template Name"
}

 

Anchor
extend
extend

...

3. Extending or Overriding pushed data

If you want to push different data you can include this data by adding fields to the JSON field groups

...