Page tree

Versions Compared

Key

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

...

PageEventEvent labelEvent structureComments
Login pagelogin 
Code Block
languagejs
{ method : 'customer' }
tracks clicks of '.js-login-submit'
 login 
Code Block
languagejs
{ method : 'registration' }
tracks clicks of '.js-register-submit'
Category and Search pagesview_item_listlist: View
Code Block
languagejs
'items': [
    {
        'id': _code,
        'name': _name,
        'list_name': _list,
        'brand': _brand,
        'category': _cat or _dim,
        'variant': _fc,
        'list_position': 1,
        'quantity': 1,
        'price': _price
    }
]
tracks product impressions
add_to_cartlist: Add x
Code Block
languagejs
'items': [
    {
        'id': _code,
        'name': _name,
        'list_name': _list,
        'brand': _brand,
        'category': _cat or _dim,
        'variant': _fc,
        'list_position': 1,
        'quantity': 1,
        'price': _price
    }
]
add to cart events triggered by '.js-buy' buttons
Product details pageview_itempdp: View
Code Block
languagejs
'items': [
    {
        'id': _code,
        'name': _name,
        'list_name': _list,
        'brand': _brand,
        'category': _cat or _dim,
        'variant': _fc,
        'list_position': 1,
        'quantity': 1,
        'price': _price
    }
]
tracks product views
add_to_cartpdp: Add x
Code Block
languagejs
'items': [
    {
        'id': _code,
        'name': _name,
        'list_name': _list,
        'brand': _brand,
        'category': _cat or _dim,
        'variant': _fc,
        'list_position': 1,
        'quantity': 1,
        'price': _price
    }
]
add to cart events triggered by '.js-buy' buttons
Cart pageadd_to_cartcart: Add X
Code Block
languagejs
'items': [
    {
        'id': _code,
        'name': 'Cart',
        'list_name': _list,
        'brand': _brand,
        'variant': _fc,
        'list_position': 1,
        'quantity': 1,
        'price': _price
    }
]
add to cart events triggered by quantity updates
remove_from_cartcart: Remove X / cart: Remove all
Code Block
languagejs
'items': [
    {
        'id': _code,
        'name': 'Cart',
        'list_name': _list,
        'brand': _brand,
        'variant': _fc,
        'list_position': 1,
        'quantity': 1,
        'price': _price
    }
]
remove from cart event triggered by quantity updates
begin_checkoutcart
Code Block
languagejs
'items': [
    {
        'id': _code,
        'name': 'Cart',
        'list_name': _list,
        'brand': _brand,
        'variant': _fc,
        'list_position': 1,
        'quantity': 1,
        'price': _price
    }
]
tracks beginning of the checkout process
Checkout pagelogin + checkout_progresslogin: customer
Code Block
languagejs
{ method : 'customer' }
tracks clicks of '.js-login-submit'
 login + checkout_progresslogin: registration
Code Block
languagejs
{ method : 'registration' }
tracks clicks of '.js-register-submit'
 login + checkout_progresslogin: guest
Code Block
languagejs
{ method : 'guest' }
tracks clicks of '.js-guest-submit'
 checkout_progress + set_checkout_optionship: "shipping method name" tracks shipping method selections
 checkout_progress + set_checkout_optionpayment: "payment method name" tracks payment method selections
 purchaseconfirm
Code Block
languagejs
{
    'transaction_id': _tx,
    'affiliation': null,
    'value': _rev,
    'currency': _curr,
    'tax': _tax,
    'shipping': _shp,
    'items': _items,
    'event_label': 'confirm'
}
tracks clicking payment button

 

 

 

Resources

Google structured data tool

https://search.google.com/structured-data/testing-tool/

This is a useful tool to help analyse schema.org meta data in your pages.