Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Hi all,
I need to implement Google Analytics in DTM but dynamically change the tracking ID based on the domain name, we currently override the Adobe report suite on Adobe Analytics tool using an IF statement but not sure how to do the same thing on GA tool?
Any help will be great
Cheers
Solved! Go to Solution.
Answered my own question...
Example below added to customise page code in the GA tool:
var gaProperty //store the property if(location.host == ("xxx")) { gaProperty = 'UA-1234567-1'; } else if (location.host == ("xxx")){ gaProperty= 'UA-1234567-1'; } else { gaProperty= 'UA-1234567-1'; } _gaq.push(['_setAccount', gaProperty]);
View solution in original post
Views
Likes
Replies
Like