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

Two google analytics tracking code in one website

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I am having trouble tracking a new website on google analytics. I have clone an old website to create new website with a different domain but end up the google analytics tracking code for the old website is in the source code of the new website.

 

And so when I added a new google analytics tracking code for my new website, it end the old and new google analytics tracking codes are in my new website source code and my new google analytics account for my new website cannot track using the new tracking code. Thank you in advance for the help.

Two google analytics tracking code in one website

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

The old code must be deleted. Alternatively, I suggest you implementing the tracking via GTM. This would mean to find someone who should

1.  clean up the codes for the 2 GA accounts

2. place the GTM code on your website

 

This way, you will have greater flexibility in the future, and no need for a person to change your source code. 

Re: Two google analytics tracking code in one website

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi Banica,

Thank you for your kind responses.

I understand that I need to delete away the old code but I cannot seem to
find the source place to delete the old code away. I can easily remove the
new code and I put it in the header.php but the old code is not anywhere to
be found.
--

Best Regards,
*Lau Kwun Nam*



[image: tidiki logo 4 color (Email)]



*If you are not the intended recipient of this communication, please delete
it. As it may contain confidential or official information, do not retain
it or disclose the contents to any person as it may be an offence under the
Official Secrets Act.*