Closed hoake closed 5 years ago
(similar to the receipt page, note there is no transaction ID here)
"event": "checkout", "ecommerce": { "checkout": { //Note the change compared to the receipt page "actionField": { "step": 1 }, //Note the step change "products": [{ "name": "WO 398", "price": "3.50", "brand": "The National Archives", "category": "Digital Record", "variant": "WO 398/188/1", "quantity": 1 //List all other product objects }] }
dataLayer.push({ "event": "removeFromCart", "ecommerce": { "currencyCode": "GBP", "remove": { "products": [{ "name": "WO 398", "price": "3.50", "brand": "The National Archives", "category": "Digital Record", "variant": "WO 398/188/14", "quantity": 1 }] } } });
dataLayer.push({ "event": "checkout", "ecommerce": { "checkout": { "actionField": { "step": 2}, "products": [{ //Repeat product listing }
"event": "transaction", "ecommerce": { "checkout": { "actionField": { "step": 3}, "products": [{ //Repeat product listing
dataLayer.push({ 'event': 'checkoutOption', 'ecommerce': { 'checkout_option': { //Remove checkout_option 'actionField': {'step': step 4, 'option': Receipt} //<meta name="WT.si_p" content="Step 4"> 'purchase': { 'actionField': { 'step': 4, 'id': '657715845504212R', // Transaction ID. Required for purchases and refunds. 'affiliation': 'Discovery Store', //<meta name="WT.si_n" content="Discovery store"> 'revenue': '7.00', // <meta name="WT.tx_total" content="7.00"> Total transaction value 'tax':'0.00', 'shipping': '0.00', //We'll need to check it it applies for record copying }, 'products': [{ // List of productFieldObjects. 'name': 'WO 398',
We need to check this has been peer reviewed and then push to test.
Script to be deployed to Discovery environment for testing
View basket page
(similar to the receipt page, note there is no transaction ID here)
Summary page
On receipt page