nationalarchives / legacy-tna-google-tag-manager-scripts

All scripts to be added into google tag manager can be found here.
MIT License
4 stars 1 forks source link

Ecommerce script #88

Closed hoake closed 4 years ago

hoake commented 4 years ago

Ecommerce tracking

Acceptance/test criteria

For Step:

"ecommerce": {
    "checkout": {
      "actionField": {
        "step": 1
      },

For changes to product variant:

"products": [{
        "id": "ADM 188/758/55839", //this is the change from variant
        "name": "ADM 188",
        "price": "3.50",
        "brand": "The National Archives",
        "category": "Digital item",
        "variant": "red",
        "quantity": 1
      }]

Acceptance/test criteria

ec:action (&pa) checkout ec:product "1" brand (&pr1br) The National Archives ec:product "1" category (&pr1ca) Digital item ec:product "1" name (&pr1nm) ADM 188 ec:product "1" price (&pr1pr) 3.50 ec:product "1" quantity (&pr1qt) 1 ec:product "1" id (&pr1va) ADM 188/758/55839 ec:step (&cos) 1 or 2 or 3