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 bug for receipt page #99

Closed hoake closed 4 years ago

hoake commented 4 years ago

Script development for

Ecommerce tracking

Acceptance/test criteria

In dataLayer for checkout process Steps 1 to 3: ecommerce: checkout: actionField: step: "1" (or 2 or 3)

products: Array(1) brand: "The National Archives" category: "Digital item" id: "PROB 11/275/301" name: "PROB 11" price: "3.50" quantity: 1

On receipt page: ecommerce: purchase: actionField: affiliation: Discovery store tax : 0 shipping: 0 revenue: 26, //use meta tag to get the revenue value step: "4"

products: Array(1) brand: "The National Archives" category: "Digital item" id: "PROB 11/275/301" name: "PROB 11" price: "3.50" quantity: 1

hoake commented 4 years ago

Currently there are 2 versions of test discovery, one for the cloud and one on-prem. Test on cloud is working but not on-prem. The scripts are running as expected but need to check the on-prem environment before release as live is taken from here.

AshGDS commented 4 years ago

@hoake I think we may need to speak to Andrew C about deploying this - I believe the fixed code was already merged into master on Discovery, but I think master on Discovery is currently incompatible with our old servers as everything has been changed to work with the cloud. (This may be a false assumption though.) May be useful to ask Andy how he managed to get Rebel Christmas up in the Mega Menu for Discovery, as I think he may of had to ask Andrew to do it manually.

If this is a priority fix we may need one of the Discovery developers to implement the new script for us if we want it LIVE before the cloud release.