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

Multiple tracking code on same domain

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

I'm trying to implement two codes for a media publication website that I'm working on. However I'm not able to track them properly. Is there anything I'm missing.

 

The first GA code, I'm tracking page views and also share events, It works fine. For the second code, I'm tracking advertising features.

 

Please help. Thanks.

 

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-24852622-37', 'auto');
ga('create', 'UA-208232-49', ‘auto’, ‘davp');
ga('send', 'pageview');
ga(‘davp.require', 'displayfeatures');
ga(‘davp.send', 'pageview');

Re: Multiple tracking code on same domain

Explorer ✭ ✭ ✭
# 2
Explorer ✭ ✭ ✭
Hi Jamshid,

This article will help you setting up two analytics codes on a same page successfully http://marketlytics.com/blog/adding-multiple-google-analytics-tracking-codes-to-webpage

let us know if it did not work for you

cheers
Noman karim