Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This question remains valid today, however the technology has changed. The old Urchin tracker is deprecated and obsolete. The new asynchronous Google Analytics tracking code uses slightly different code to achieve the same results.</p> <h2>Google Analytics Classic - Asynchronous Syntax - <code>ga.js</code></h2> <p>The current syntax for setting the tracking domain to none on google analytics looks like this:</p> <pre><code>_gaq.push(['_setDomainName', 'none']); </code></pre> <p>Google analytics will then fire off the _utm.gif tracker request on localhost. You can verify this by opening the developer tools in your favorite browser and watching the network requests during page load. If it is working you will see a request for _utm.gif in the network requests list.</p> <h2>Updated 2013 for Universal Analytics - <code>analytics.js</code></h2> <p>Google released a new version of analytics called "Universal Analytics" (late 2012 or early 2013). As I write, this the program is still in BETA so the above code is still recommended for most users with existing installations of Google Analytics.</p> <p>However, for new developments using the new <code>analytics.js</code> code, the <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced" rel="noreferrer">Google Analytics, Advanced Configuration - Web Tracking Documentation</a> shows that we can test Universal Analytics on localhost with this new code:</p> <pre><code>ga('create', 'UA-XXXX-Y', { 'cookieDomain': 'none' }); </code></pre> <p>Check out the linked documentation for more details on advanced configuration of Universal Analytics.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload