Muhammad
Muhammad

Reputation: 307

Google Analytic tracking code not working / not installed.

The code is visible in "view page source" but GA says "Tracking Not installed". the website is validated for errors with html5.validator.nu and http://validator.w3.org and there is no error. But still couldn't see the "Tracking Installed" not the realtime activity.

<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','//www.google-analytics.com/analytics.js','ga'); > 
           ga('create', 'UA-40983367-1', 'star-business-directory.com'); 
           ga('send', 'pageview'); </script> 

here is my site: star-business-directory.com

Upvotes: 1

Views: 1455

Answers (2)

MrSponge
MrSponge

Reputation: 868

The code is implemented correctly. Please check that your property is properly configured to receive Universal Analytics data. If not, then it will not work.

Regarding Universal or Classic Analytics support, you can find this information if you look in the administrative overview, under "Property".

If you look at the top, you can see a property which does NOT have support for Universal Analytics. Please upgrade.

If you look at the top, you can see a property which does NOT have support for Universal Analytics. Please upgrade. If you DO have support for it, you should see a green check sign.

Also, are you looking into the correct account and property? You should be seeing real-time data for the property UA-40983367-1.

Upvotes: 1

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117281

The code on your site looks like this:

<script> <!-- type="text/javascript" language="javascript"> -->
  (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-40983367-1', 'star-business-directory.com');
  ga('send', 'pageview');

</script>

I believe the problem you are having issues with the HTML comment inside the script tag. Try and remove the following code.

<!-- type="text/javascript" language="javascript"> -->

Upvotes: 0

Related Questions