AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
1.9K members online now
1.9K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

GA Enhanced Ecommerce: Send Impressions in a second hit

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

we implemented the Enhanced Ecommerce Features. On every category and search result page, we send the product impressions to Google analytics. The data are sent with the pageview command when the page has been loaded.

 

In the next step we want to include the recommendation lists on the product detail pages and the welcome page, too. Our challenge is, that those lists are filled after the page has been loaded. So is there any workaround which allows to send those impression data in a second hit but not with the

 

ga('send', 'pageview');

 command?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Eric S
December 2015

Re: GA Enhanced Ecommerce: Send Impressions in a second hit

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆
Of course! You can send impressions data with event hit.
Prepare impressions data and send them by using command:
ga("send","event","Ecommerce","Impressions","Welcome page",{nonInteraction: true});

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Eric S
December 2015

Re: GA Enhanced Ecommerce: Send Impressions in a second hit

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆
Of course! You can send impressions data with event hit.
Prepare impressions data and send them by using command:
ga("send","event","Ecommerce","Impressions","Welcome page",{nonInteraction: true});

Re: GA Enhanced Ecommerce: Send Impressions in a second hit

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
ga("ec:addImpression", {
  "id": "9bdd2",
  "name": "Compton T-Shirt",
  "price": "44.00",
  "brand": "Compton",
  "category": "T-Shirts",
  "position": 1,
  "list": "homepage"
});
ga("ec:addImpression", {
  "id": "f6be8",
  "name": "Comverges T-Shirt",
  "price": "33.00",
  "brand": "Comverges",
  "category": "T-Shirts",
  "position": 2,
  "list": "homepage"
});

ga('send','event','Ecommerce','Impressions','Recommendation',{nonInteraction: true});


Thanks for your fast answer! So after the pageview, this would be the correct implementation for sending those two products as an impression to GA?

 

Should it be 'Impression' or 'Impressions'

 

And if I sent impressions before with a pageview, are those ignored in the second hit?

Re: GA Enhanced Ecommerce: Send Impressions in a second hit

Participant ✭ ✭ ☆
# 4
Participant ✭ ✭ ☆
'Impressions' or 'Impression' - it's doesn't matter, because it's only Action name for event.
You can set whatever you want.

Impressions which were sent before are ignored with next hit.

Re: GA Enhanced Ecommerce: Send Impressions in a second hit

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Great, it works! Thank you so much!