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

Tracking Code Mismatch

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi community

 
I received a notification about  Tracking Code Mismatch
 
The default URL http://foresight-analytics.com, for property UA-1234567-1 has no tracking code for this property, although it does have tracking codes for other properties:
  • UA-234567-1
If your Tracking ID and your Default URL setting are out of sync, you don't get valid data in your Analytics account for the Default URL.

However I can only find the tracking code I put it in under the theme header 
 
<script>
(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','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-1234567-1', 'auto');
ga('send', 'pageview');

</script>
 
But when I inspected my default URL page and I could find both in the element source.
 
 

 

1 Expert replyverified_user

Tracking Code Mismatch

Top Contributor
# 2
Top Contributor

Hi :-)
It looks like one lot of tracking code for tracking id UA-85098645-1 is added via a plugin Google Analytics Tracking by Google Analyticator

There is also a duplicate tracking code snippet for this same tracking id

 

and

 

There is another tracking code snippet for UA-79162097-1

 

Places to check for the duplicate tracking id.. and the one UA-79162097-1
- current active theme's header.php file

- theme admin options that allow for either adding analytics tracking code snippet or the tracking id for the theme to then add the tracking code for you.

- theme admin option for adding scripts to the theme

- another plugin for adding scripts to the header of the site

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

Re: Tracking Code Mismatch

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi

Thank you for your answer Bronwyn !

I have already put the tracking Id UA-85098645-1 into current active
theme's header file but it did not work.The tracking code UA-

79162097-1 is still default code. However I could not find any piece about
the duplicate tracking id of UA-79162097-1 in any theme's

file.

So where I can find the tracking code UA-79162097-1 and fix the problem

Tracking Code Mismatch

[ Edited ]
Top Contributor
# 4
Top Contributor

Hi Jay :-)

I'm a bit confused with what is being done.

 

Atm there is a plugin installed and activated.. it is adding the tracking code for property UA-85098645-1
The plugin's name is Google Analytics Tracking by Google Analyticator 6.5.2

You have also mentioned:
I have already put the tracking Id UA-85098645-1 into current active

 

This is why Google Tag Assistant is showing this code for tracking id UA-85098645-1 as being added twice.

There is also a single tracking code snippet installed for tracking id UA-79162097-1.

 

What is the tracking id on the top of the Property Settings page for this website's Property in Google Analytics?
This is the one to use on the website, and should only be installed once.

 

 

 

 

 

 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here