Jump to content

A bit baffled why my site isn't tracking google analytics


MuchDev
 Share

Recommended Posts

So I am looking all over and am just banging my head against the desk on this one. I launched the other day, and have followed the Google documentation to the letter and still have yet to have any analytics populate on my view. I really wanna track this weekend but so far it's a no go. I am reaching out to you wonderful folks for a bit of insight on how to track this down. I have followed both the synchronous(the basic method listed with their documentation) and asynchronous method (using their specific documentation) to no avail.

So here is the code

<head>
....
....
....
<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setDomainName', 'www.davidsongalleries.com']); 	
    _gaq.push(['_setAccount', 'UA-xxxxxxx-x']); <--using my proper id
    _gaq.push(['_trackPageview']);
</script>

</head>
<body>
.........

<script type="text/javascript">  (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>


So that seems all well and good, I see the request using ga debug, and it lists via Ghostery but still nothing. 

What does this mean to you?

Link to comment
Share on other sites

In your GA dashboard, does it say that it's receiving data? If so, then there is nothing wrong with the code implementation. GA has a built-in threshold. Not sure exactly how to lift that but basically, if your new website doesn't get sufficient data, GA will not show it.

Link to comment
Share on other sites

Interesting! Well no I am getting no analytics of any kind which is why its so strange. I know that the script is in place and firing. I have tried it now in place at the head of my document and am recaching the site to see if that makes a difference. 

So the website is http://www.davidsongalleries.com and has 301s on non www and that domain is plugged into analytics. So friggin weird.

Link to comment
Share on other sites

Well I tinkered with that thing for hours and google would not register anything no matter what I did. I wasn't getting any errors and I was picking up the answer gif which is the strangest part. Well I pretty much say screw it. I've got piwik running now and it is working great, any do's and don'ts that anyone wants to share? Maybe even tips or pointers on what modules are good?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...