Versions Compared

Key

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

...

User Detail data is pushed on every page of the site.  There is the option to push data for logged in users only.

  • The 'User_ID' = the user's unique identifier (database field ?= user.userid )
     
Code Block
languagejs
titleSample User Detail data
{
	"User_ID": "unique user id"
}

...

Anchor
ecomquestion
ecomquestion
d. Questionnaire

This Questionnaire data is only pushed for non-widget-based questionnaires as .

Since the URL does not change after the questionnaire is submitted so post submission, a virtual URL is pushed. Widget (In contrast, widget-based questionnaires have a URL redirect URL after form post submission.)

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

...

PropertyValueNotes
step

The checkout step number:

  • Step 1 - going to cart
  • Step 2 - attempting checkout, but login required
  • Step 3 - selecting delivery option

 

 
   
   
   
  • step
    • the step number

      Info

      // Step 1 - going to the cart

                  // Step 2 - attempting to checkout but need to log in

                  // Step 3 - going to the delivery options

                  // Step 4 - going to the payment options

                  // Step 5 - going to submit the order

  • products
    • the products in the cart

...

  • 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"
			}
			]
		}
	}
}

...