Google Analytics



How to grant another user access to your Google Analytics


Async Google Analytics Tag

This is our standard format for GA tags. This makes the GA call asynchonous (in the background) without delaying the page loading. Previously the GA call was a blocking call - which is why you see it saying "contacting host googleanalytics..." in the status bar - it actually is delaying the page!


<script type="text/javascript"> 

  var _gaq = _gaq || []; 
  _gaq.push(['_setAccount', 'UA-XXXXX-X']); 
  (function() { 
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + ''; 
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 


Google Analytics CMS integration

Apparently mojoPortal has GA integration, which includes these good ideas:

- automatically labelling visitors as Members if they are logged in (presumably with a UserID as a GA custom variable)

- Site Search tracking - I didn't realise this was possible in GA, but it sounds like you would get analytics reports of what keywords people are searching for in your own site search - sounds like we could use this ourselves




Leave a Comment