Google analytics enhanced ecommerce, help me debug setup please -


i've implemented enhanced ecommerce tracking in google ua populating datalayer far can see correct data.

here html of actual datalayer script:

<script type="text/javascript">      datalayer.push({         'ecommerce': {             'purchase': {                 'actionfield': {                     'id': 'zw10317808',                         // transaction id. required purchases , refunds.                     'affiliation': 'online store',                     'revenue': '9.95',                     // total transaction value (incl. tax , shipping)                     'tax':'0.00',                     'shipping': '0.00',                     'coupon': '',                     'products': [                          {                             'name': 'test product', // name or id required.                             'id': 'zcmnr010',                             'price': '9.95',                             'brand': 'brand',                             'category': '',                             'variant': '',                             'quantity': 1                             //, 'coupon': '' // optional fields may omitted or set empty string.                             }                      ]                 }             }         }     }); </script> 

and here sample output console appears (to me) values making datalayer:

datalayer [    0: {       [functions]: ,       __proto__: { },       ecommerce: {          [functions]: ,          __proto__: { },          purchase: {             [functions]: ,             __proto__: { },             actionfield: {                [functions]: ,                __proto__: { },                action: "purchase",                affiliation: "online store",                coupon: "",                id: "zw10317808",                products: [                   0: {                      [functions]: ,                      __proto__: { },                      brand: "brand",                      category: "",                      id: "zcmnr010",                      name: "test product",                      price: "9.95",                      quantity: 1,                      variant: ""                   },                   length: 1                ],                revenue: "9.95",                shipping: "0.00",                tax: "0.00"             }          }       }    },    1: {       [functions]: ,       __proto__: { },       event: "gtm.js",       gtm.start: 1408351886007    },    2: {       [functions]: ,       __proto__: { },       ecommerce: {          [functions]: ,          __proto__: { },          checkout: {             [functions]: ,             __proto__: { },             actionfield: {                [functions]: ,                __proto__: { },                step: "order confirmation"             }          }       },       event: "checkout"    },    3: {       [functions]: ,       __proto__: {          [functions]: ,          __proto__: null       },       event: "gtm.dom"    },    4: { },    length: 5 ] 

the transaction listed in ua 0.00 revenue, 0 items, etc. transaction last week unlikely data latency.

also checkout step tracking isnt showing in reports either. i've enabled enhanced tracking in ga view , deployed plugin view setting in gtm.

i'm scratching head. fresh pair of eyes can spot obvious.

thanks if can help.

thanks

products must sit beneath "purchase", not within actionfieldobject:

<script type="text/javascript">  datalayer.push({     'event': 'transaction',     'ecommerce': {         'purchase': {             'actionfield': {                 'id': 'zw10317808',                         // transaction id. required purchases , refunds.                 'affiliation': 'online store',                 'revenue': '9.95',                     // total transaction value (incl. tax , shipping)                 'tax':'0.00',                 'shipping': '0.00',                 'coupon': ''             },             'products': [                  {                     'name': 'test product', // name or id required.                     'id': 'zcmnr010',                     'price': '9.95',                     'brand': 'brand',                     'category': '',                     'variant': '',                     'quantity': 1                     //, 'coupon': '' // optional fields may omitted or set empty string.                     }              ]         }     } }); 

hope helps.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -