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.4K members online now
1.4K 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

Enhanced Ecommerce - Promotion Impression (Views)

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

i all,

 

I have defined below to capture the promotion impressions/views. However, it has been two days and still unable to see the results in GA. Can anyone please advise if anything's wrong with my script below? I can see from the GTM debugger that it has successfully pushed but can't see any result.

 

https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measurin...

 

Script Tags:

function promotionEEC1View(sId, sName, sCreative, sPosition) {
	dataLayer.push({
		'event': 'promotionEEC1View',
		'dlvDateTimePosted': 'Viewed On: ' + datetime,
	  'ecommerce': {
		'promoView': {
		  'promotions': [                     // Array of promoFieldObjects.
		   {
			 'id': 'PromoID_1111',            // ID or Name is required.
			 'name': 'Summer Sale June 11 2016',
			 'creative': 'summer_banner1',
			 'position': 'slot1'
		   },
		   {
			 'id': 'PromoID_1112',
			 'name': 'Summer Sale June 11 2016',
			 'creative': 'summer_banner2',
			 'position': 'slot2'
		   }]
		}
	  }
	});
}

function promotionEEC1Click(sId, sName, sCreative, sPosition) {
	dataLayer.push({
		'event': 'promotionEEC1Click',
		'dlvDateTimePosted': 'Clicked On: ' + datetime,
		'ecommerce': {
			'promoClick': {
				'promotions': [{
					'id' : sId,
					'name' : sName,
					'creative' : sCreative,
					'position' : sPosition
					}]
				}
			},
	});
}

HTML:

<p><img src="xm_banner_small.png" onmouseover="promotionEEC1View('Promotion 100', 'Saturday Sales', datetime, 'Position: Top_Right');" alt="XM Banner" width="500" height="180" /></p>
<p><a href="welcome_home.html" class="GTM_Back">&lt;&lt; Logout</a> </p>
<br />
<hr />
<br />

<p>1. Enhanced E-Commerce Transactions 2</p>
<a href="welcome_EEC_1.html" class="GTM_Promo" onclick="promotionEEC1Click('Promotion 100', 'Saturday Sales', datetime, 'Position: Top_Right');">Promo Click</a>

 

Promotions - GTM.JPGIt's been over 3 days and still can't see any promotion views result

 Promotions - GTM2.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Victor C
June 2016

Re: Enhanced Ecommerce - Promotion Impression (Views)

Follower ✭ ☆ ☆
# 2
Follower ✭ ☆ ☆

Hi Victor:
What you have setup looks good. The last step is likely sending the data to Google Analytics. What is typically done is setup a Google Analytics Event tag to fire on the promotionEEC1View event - which in turn will send the data back to Google Analytics.

See the images for a sample tag and trigger.

One thing to consider is when to use the non-interaction - my rule of thumb is that if the user takes action like clicking then set non-interaction to false.  If the event is triggered automatically such as after the pageview has been sent - then set non-interaction to true.

Best,

Jay

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Victor C
June 2016

Re: Enhanced Ecommerce - Promotion Impression (Views)

Follower ✭ ☆ ☆
# 2
Follower ✭ ☆ ☆

Hi Victor:
What you have setup looks good. The last step is likely sending the data to Google Analytics. What is typically done is setup a Google Analytics Event tag to fire on the promotionEEC1View event - which in turn will send the data back to Google Analytics.

See the images for a sample tag and trigger.

One thing to consider is when to use the non-interaction - my rule of thumb is that if the user takes action like clicking then set non-interaction to false.  If the event is triggered automatically such as after the pageview has been sent - then set non-interaction to true.

Best,

Jay

Re: Enhanced Ecommerce - Promotion Impression (Views)

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆

Having issues loading images...

 

Tag

Google Analytics Event

Category - Enhanced Ecommerce

Action - Impression

non-interaction - False

Ecommerce Features:

Enable ENhanced Ecommerce Features - checked

Use data layer - checked

Fire on - promotionEEC1View event

 

Trigger

Custom Event

Fire On - Event name: promotionEEC1View event (Use regex matching)

Re: Enhanced Ecommerce - Promotion Impression (Views)

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Thanks Jay, may I know what's "use regex matching" for?

Enhanced Ecommerce - Promotion Impression (Views)

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Did you manage to solve this?