Analytics
2.1K members online now
2.1K 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

Google Tag Manager - Dynamic Remarketing and Custom Dimensions

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi all,

we implement the Dynamic Remarketing Parameters with a datalayer object like this:

dataLayer.push({
'google_tag_params': {
'ecomm_prodid': '12345',
'ecomm_pagetype': 'cart',
'ecomm_totalvalue': 39.99
}
});

In the GTM I created a Variable "google_tag_params" and an Adwords Tag with the option "Use Data Layer". It seems to work, so far. My question is: How can I push the ecomm parameters as Custom Dimension to Google Analytics?

Thanks,
Klaus

 

1 Expert replyverified_user
Marked as Best Answer.
Solution
Accepted by topic author Klaus R
May 2016

Re: Google Tag Manager - Dynamic Remarketing and Custom Dimensions

Top Contributor
# 2
Top Contributor

Hi Klaus try with :

Screenshot_95.png

Repeat the variable procedure for pagetype and totalvalue if needed. Use the variable inside a GA tag for each respective CD slot. 

 

Hope it helps. 

 

Kind regards,

Zorin

Web analyst @ escapestudio.net

Re: Google Tag Manager - Dynamic Remarketing and Custom Dimensions

Follower ✭ ✭ ✭
# 3
Follower ✭ ✭ ✭

It's really easy:
1. Create you custom dimensions in GA
- each custom dimension will get an index ( a number next to the dimensions).
let's presume you just created one and you got the index of 6.
https://support.google.com/analytics/answer/2709829?hl=en

2. Create a data layer variable in GTM.
Presume you want to push 'ecomm_totalvalue' to it
you would have the variable defined as

Screen Shot 2016-05-31 at 4.57.13 PM.png

 

3. you edit you GA tag and add custom dimensions and you put the index (in our hypothetical case it was 6) and your variable name (in our case it was dataLayerVariable)

 

Screen Shot 2016-05-31 at 4.57.44 PM.png

 

4 Magic. Done.

 

Smiley Happy

Re: Google Tag Manager - Dynamic Remarketing and Custom Dimensions

Top Contributor
# 4
Top Contributor

Hi @Mihai S - in this case only placing ecomm_totalvalue will not work (will return undefined) as the DL var name should be google_tag_params.ecomm_totalvalue (v2).

 

Kind regards,

Zorin

Web analyst @ escapestudio.net

Re: Google Tag Manager - Dynamic Remarketing and Custom Dimensions

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Hi Zorin,

thanks for your quick response!

I tried you solution and created a new variable (version 2) with "google_tag_params.ecomm_prodid", but it doesn't seems to work. It returns an "undefined" for dimension1 in GA Debug. The datalayer object is available when I checked it with the gtm preview or tag assistant.

Best,
Klaus



Re: Google Tag Manager - Dynamic Remarketing and Custom Dimensions

Top Contributor
# 6
Top Contributor
Hey Klaus,

A) is there a way you can send the link where this can be seen live?
B) what are the triggers for the adwords rem tag and for ga pageview

Kind regards,
Zorin
Web analyst @ escapestudio.net

Re: Google Tag Manager - Dynamic Remarketing and Custom Dimensions

[ Edited ]
Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

Hi Zorin,

thanks for your help!

B) I use an event trigger + a filter with Page URL regex .* for the Adwords Remarketing Tag. The GA Tag fires on the standard "All Pages" trigger -> Tag Assistant says that both Tags are fired correctly.

Thanks,
Klaus

Re: Google Tag Manager - Dynamic Remarketing and Custom Dimensions

[ Edited ]
Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

Hi Zorin,

I had a look again at the GTM preview of my container and checked the created "google_tag_params.ecomm_prodid" variable. The productid returned correctly. It seems there is something wrong with my GA Tag. Maybe the dataLayer object is not yet available when the GA Tag fires. I will check that tomorrow.


Thanks,
Klaus