Post by pwood » Thu Dec 18, 2014 5:46 pm

I'm planning on adding the enhanced e-commerce tracking code, this is the google analytics code :

Code: Select all

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
ga('create', '[ENTER MAIN PROPERTY ID]', 'auto');
ga('create', '[ENTER TEST PROPERTY ID]', 'auto',{'name': 'newTracker'});  // New tracker
ga('require', 'ec');
// ImpressionFieldObject stores product impression data
'id': '[Server Variable]', // Product ID/SKU - Type: string
'name': '[Server Variable]', // Product name - Type: string
'category': '[Server Variable]',// Product category. Use / as a delimiter to specify up to 5 levels of hierarchy (e.g Men/Shirts/T-Shirts) - Type: string
'brand': '[Server Variable]',// Product brand - Type: string
'variant': '[Server Variable]', // Variant of the product like color, size etc - Type:string
‘price’: [Server Variable], // Product price - Type: numeric
'list': '[Server Variable]', // Product list - Type: string
'position': [Server Variable] // Product position in a list - Type: numeric
ga('newTracker.send', 'pageview');              // Send product impressions with initial pageview
ga('send', 'pageview');

I confused how to make it track each products and what should be put inside the addImpression parameter (id, name, category, etc) ?

thank you

Active Member


Tue May 07, 2013 7:58 pm
Who is online

Users browsing this forum: No registered users and 31 guests