Google Analytics into DTM

karan_sibal1

05-11-2015

Hi There,
I am trying to put GA stuff already present in Google Tag Manager into Dynamic Tag Manager. Anyone can help me guide which code goes where. Like Trackername etc? I have already added the Google Analytics Tool in DTM.

Note that I am creating a page load rule in DTM. please see the screenshot attached, for GA in GTM that I wich to transfer/migrate in GA tool of DTM.

Thanks,

Karan

Accepted Solutions (1)

Accepted Solutions (1)

TanmayMathur

Community Manager

06-11-2015

Hi Karan,

I think the set of pages here would help you identify what needs to be done to add GA tool with DTM - https://marketing.adobe.com/resources/help/en_US/dtm/google_universal_analytics.html

If there is still any question which remains unanswered there, feel free to reach out.

Thanks!

TM

Answers (3)

Answers (3)

ParitMittal

20-11-2015

Hi Karan,

After going through your previous post it looks like there is  discrepancy in your GA tool configuration as a result of which GA tags are not fired. It is recommended to go through the following link for best practices of configuring GA tool in DTM -  https://marketing.adobe.com/resources/help/en_US/dtm/ga.html and then debug the configuration once to check if everything is being set up in a correct way.

Also, For the use case you mentioned, we would suggest to capture the Data Element in the following manner for Event rule.

Now, under Rule Conditions Criteria, choose "Data > Custom" and click the "Add Criteria" button, which will then show a Custom codebox section.

Within that codebox, enter the following:

var URL=document.URL;
_satellite.setVar('Page URL',URL);
return true;
So the way this works is that  within a condition we have used _satellite.setVar() method to set a data element called "Page URL" to the value of the document.URL . Then we return true to ensure that the condition is always true, so that this condition will not prevent the rule from triggering.

Please feel free to let us know if you have any questions or queries.

Thanks & Regards

Parit Mittal

karan_sibal1

18-11-2015

Hi Tanmay,

This is the URL that I am getting from everyone now. just to let you know, I did some research and here is what I was trying to do. Firstly my task was to migrate existing GA tags in GTM like https://drive.google.com/a/decision-science.com/file/d/0BwFKBVvRHSoOb1BFeExmNDljbTQ/view into DTM. For this I need to set a Data Element that capture "Page URL" when the "Subscribe Now" button is set. And the Element tag to be set for capturing the Subscribe now button click. Note that I have created the Event based rule. few screenshots of DTM : http://awesomescreenshot.com/0505ellq80 
Also, note the Category is set to Data Element "%Page URL%" http://awesomescreenshot.com/07c5elltc6

The DTM rule fires, but no image request is being sent to GA. I have tested GA code without DTM and it works.

So, the final issue drills down to, the GA tool configuration is not properly set. Any sample GA tool settings that is working at your end and you can share the screenshots of it?

 

Thanks,

Karan