Analytics
4.1K members online now
4.1K members online now
Learn to identify referral spam traffic, as well as best practices to reduce referral spam in your Google Analytics account
 
Guide Me
star_border
Reply

Another Google tracking code is showing up as my sites tracking code

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,would like to please discuss an issue i have with my site when i sign into my google analytics dashboard,under reporting,everything such as sessions,users,Avg. Session Duration,bounce rate is all reading 0% meaining its not capturing any data to process.Apparently an unknown tracking code is showing up on my Google Tag analysis.I have installed some plugins and deactivated some but it seems one has overwritten  my tracking code,here is what i get from my Google tag recordings.

A)

Google Tag Assistant

 

Result of Tag Analysis

2 In total1 Errors

 

1.

Google Analytics

UA-248353-18

 

2.

Google Analytics

UA-79349017-1

 

 

 

Disable

Record

VIEW RECORDINGS

 

B)This is not mine

Web Property ID

UA-248353-18

Code Version/Syntax

Remarketing

Unformatted

Formatted

Referral

http://mybeautifulafrica.style/wp-admin/customize.php?url=http%3A%2F%2Fmybeautifulafrica.style%2F

Protocol version number

5.6.7dc

Code Snippet

View Source

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-248353-18']);

_gaq.push(['_trackPageview']);

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

})();

 

window.addEventListener('message', function(e){

var arr = e.data.split('__');

...

C)This is mine

Tag Assistant

 

Result of Tag Analysis

2 In total1 Errors

 

1.

 

Google Analytics

UA-79349017-1

 

Google Analytics UA-79349017-1

2/2

 

 

Metadata

Code Snippet

Cookies

Web Property ID

UA-79349017-1

Code Version/Syntax

Universal

Protocol version number

1

2

Pageview Requests

Where to optimize

 

Missing analytics.js script

 

Same web property ID is tracked twice.

 

Code found outside of <head> tag

 

Disable

Record

VIEW RECORDINGS

 

Code Snippet

View Source

...ipt','https:\/\/www.google-analytics.com\/analytics.js','ga');\r\n\r\n ga('create', 'UA-79349017-1', 'auto');\r\n ga('send', 'pageview');\r\n\/\/ ]]&gt;&lt;\/script&gt;\r\n\r\n\r\n&lt;a href='http:\/\/www.specificfeeds.com\/widgets\/emailSubscribeEncFeed\/MmtQOHFINmN0SG1lZmc4MS8yS1pOQWxaeWV5YkcvWGtvb......

 

Cookies:

_ga

GA1.2.709931431.1465888781

 

so am having issues with data and analytics,can you please help?

Thank you.

 

Re: Another Google tracking code is showing up as my sites tracking code

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆
Hi so are you saying that there is another tracking code being picked up by tag assistant for your website?
when you go directly into your code say go CTRL U then CTRL F and search for UA- so that you can see your correct codes or do you see that one that is not yours?
if there is one that is not yours then remove it form your site.
If they are both in GTM then go into GTM and remove the one that is not yours

you definitely do not want to have any GA codes that are not yours in your site.

BUT sometimes certain add ons people ad to their site in an iframe etc can cause tag assistant to see another code that is not yours but that should have no impact on your GA data as it is no actually sending data to your GA or really or really 'on' your site

Re: Another Google tracking code is showing up as my sites tracking code

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks David, i eventually sorted it out, it was coming in from a referral link, i have since removed the link and the 2nd UA is gone.Thanks for your fedback