简体   繁体   中英

Google Analytics keeps saying tracking not installed but

Im having an issue with Google analytics. Originally i had it in the footer and it was showing that tracking was not installed. I just moved it up to the head and the analytics profile is still showing its not installed (confirmed via google's check time) YET within my analytics profile it is tracking? I have 3 visits?

Whats going on here?

www.kildarepainter.com

The GA tracking code on your website doesn't looks like is ok. It should be something like:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-39945787-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

Copy this code and replace it with the one you have on your site. Go to your GA panel and check it out

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM