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

Enhanced Ecommerce - Internal Promotions - PromoViews

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi All,

 

We have setup Internal Promotions on Analytics, but i can't seem to get Promotion Views to work, only clicks.

 

Here's what we have setup. 

 

The dataLayer looks this:

 

$(document).ready(function() {
						// Promo Impressions
						dataLayer.push({
						  'ecommerce': {
						    'promoView': {
						      'promotions': [
						       {
						         'id': 'Customer tools',
						         'name': 'Shoe finder',
						         'creative': 'n/a',
						         'position': 'n/a'
						       }]
						    }
						  }
						});

						// Promo Clicks
						$('#Customer-tools').click(function() {
							dataLayer.push({
					    		'event': 'promotionClick',
					    		'ecommerce': {
					      			'promoClick': {
					        			'promotions': [
					         				{
									           'id': 'Customer tools',
									           'name': 'Shoe finder',
									           'creative': 'n/a',
									           'position': 'n/a'
					         				}]
					      			}
					    		}
					  		});
						})
					})

This is being picked up in the GTM debugger:

gtmdebug.PNGdebug2.PNG

But is only showing clicks in analytics

anal2.PNG

 

Any ideas what ive done wrong?

 

Thanks

 

Colin

Enhanced Ecommerce - Internal Promotions - PromoViews

Participant ✭ ☆ ☆
# 2
Participant ✭ ☆ ☆

I suppose you should check the scipts executions sequence to be sure that your pageview tag is fired after you pushed ecommerce object in dataLayer

Enhanced Ecommerce - Internal Promotions - PromoViews

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks

 

I was replying on the normal GA pageview tag, is that wrong? It works ok for the Product impressions.

 

Ive created a new Pageview tag triggered by gtm.dom to see if that works. That won't mess up my normal analytics will it?

 

 

Enhanced Ecommerce - Internal Promotions - PromoViews

Explorer ✭ ✭ ✭
# 4
Explorer ✭ ✭ ✭

Hi @Colin D,

You can try as @Дмитро Б  said or
Try creating 'event' :'PromoViews' (can name anything)
the same as you did for promoclicks and try triggering ecommerce through that event.
Make sure its Non - interaction hit.

Hope this helps,
Thanks,
Ritwik

Enhanced Ecommerce - Internal Promotions - PromoViews

Participant ✭ ☆ ☆
# 5
Participant ✭ ☆ ☆

You should check With GTM debugger if your dataLayer is populated with ecommerce promoView data on the step where pageview tag is fired.

Or as @Ritwik B said non-interaction GA event fired on custom GTM event is the most transparent and reliable method to send these data

Enhanced Ecommerce - Internal Promotions - PromoViews

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Hello Colin D. 

 

Did you get this one working? Any help would be appreciated!


Thanks

Enhanced Ecommerce - Internal Promotions - PromoViews

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

Check the following things -:

 

1) In GTM you have the following against your UA Page view Tag 

 

Enable Enhanced Ecommerce Features: true
Use Data Layer: true
Trigger: event equals gtm.dom
 

 

2) window.dataLayer = window.dataLayer || []; is there just before dataLayer.push in your code

 

3) Make sure the data is looking exactly same as shown in the documentation

https://developers.google.com/tag-manager/enhanced-ecommerce#promo-impressions