Analytics
5.3K members online now
5.3K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

need to record impressions/offerids whwn user view it.

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭
  • I need to make a script which record impression/ offerids, when user view an offer in its view port. The impression/ non interaction event should fire after 4 sec.
  • I need to export this data from google analytics account for further analysis.
  • My data will be 1,00,000+ offers per day.
  • Planning to extract this data from big query.
     
    You can view the functionality on following test url, on dev-tenders :
    https://dev-tenders.indiamart.com/test_states.php
  • I have used following functions to achieve this.

a. imgtm.push({
'ecommerce': {
'detail': {
'actionField': {'list': 'Offerids List'},
'products': [{
'id': div_val1, // Product ID (string).
'name': 'Offerids', // Product name (string).
'category': 'BL',
'list': 'Impression Results', // Product list (string).
'position': div_val // Product position (number).
}]
},
'impressions': [
{
'id': div_val1, // Product ID (string).
'name': 'Offerids', // Product name (string).
'category': 'BL',
'list': 'Impression Results', // Product list (string).
'position': div_val // Product position (number).
}
]
}
});

-----------------------------------------------------------------------------------------
b. ga('gtm43.ec:addImpression', {
'id': div_val1, // Product ID (string).
'name': 'Offerids', // Product name (string).
'category': 'BL',
'list': 'Impression Results', // Product list (string).
'position': div_val // Product position (number).
});

1. How to check?
 
       To check this please do following steps:
  • Enable Google Analytics Debugger extension in the google chrome browser. (Webstore)
  • press ctrl+shift+j to view the impression added through EC plugin
  • wait for 4 sec
  • scroll further to see the impressions getting registered of the new buy leads visible in the view port.
  • Also you can view the values of data layer in tag assistant extension of chrome.

 

2. Challenge :

  • No data is recorded in GA account yet. Please help me to figure out mistake in my code or suggest any other way to do this.