Multisite Analytics not tracking network

We noticed that since upgrading to the multisite analytics 2.0.3 earlier in the year, our network tracking has stopped. I see the analytics code being inserted, but it's not being tracked in GA. This is the code being inserted.... in the past there were problems with the plugin output that were fixed, are there any issues with this output?

<script type="text/javascript">
//<![CDATA[
var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-xxxxxxxx-1']);
_gaq.push(['_setDomainName', '.ssssssssss.com']);
_gaq.push(['_setAllowHash', false]);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

_gaq.push(['b._setAccount', 'UA-xxxxxxxxx-1']);
_gaq.push(['b._trackPageview']);
_gaq.push(['b._trackPageLoadTime']);

(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>

  • aecnu

    Greetings Tracy,

    Well here is the data from our test production server:

    <script type="text/javascript">
    				//<![CDATA[
    				var _gaq = _gaq || [];
    
    									_gaq.push(['_setAccount', 'U-xxxxxxxx-1']);
    											_gaq.push(['_setDomainName', '.domain.us']);
    						_gaq.push(['_setAllowHash', false]);
    										_gaq.push(['_trackPageview']);
    											_gaq.push(['_trackPageLoadTime']);
    
    				(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>

    I will need to save this ticket to be able to see them both to compare.

    Cheers, Joe

  • aecnu

    Greetings Tracy,

    Thank you for your patience regarding this ticket and issue.

    FYI, I am still testing this and close to calling in the lead developer because to date I still have no results in my analytics for my test domain, which by now there absolutely should be, I am on this site everyday.

    I did check Googles own native code against what is being presented on my page (as shown above) and find some slight differences on my page source view. i.e. //<![CDATA[ , spaces, etc.

    I checked a working page of mine that has the code embedded straight in it and found it differs enough that I have decided to call in the lead developer for his advice/advise on what is going on here.

    Working code:

    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-XXXXXXXX-4']);
      _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>

    Though this may take a bit longer then a regular ticket, I will see if I can get the lead developer in here asap.

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.