Google Analytics

Tracking Code: Urchin Server

This reference describes the methods that you use for configuring your server setup when you are using both Google Analytics and the Urchin software to track your website.

GATC Urchin Server Methods

Method Details

_getLocalGifPath()

_getLocalGifPath()

Gets the local path for the Urchin GIF file. See _setLocalGifPath() for more information.

Async Snippet (recommended)

_gaq.push(function() {
  var pageTracker = _gat._getTrackerByName(); // Gets the default tracker.
  var localGifPath = pageTracker._getLocalGifPath();
});

returns

    String Path to GIF file on the local server.

_getServiceMode()

_getServiceMode()

Returns the server operation mode. Possible return values are 0 for local mode (sending data to local server set by _setLocalGifPath()), 1 for remote mode (send data to Google Analytics backend server), or 2 for both local and remote mode.

Async Snippet (recommended)

_gaq.push(function() {
 var pageTracker = _gat._getTrackerByName(); // Gets the default tracker.
 var serviceMode = pageTracker._getServiceMode();
});

returns

Number Server operation mode.


_setLocalGifPath()

_setLocalGifPath(newLocalGifPath)

Sets the local path for the Urchin GIF file. Use this method if you are running the Urchin tracking software on your local servers. The path you specific here is used by the _setLocalServerMode() and _setLocalRemoteServerMode() methods to determine the path to the local server itself.

Async Snippet (recommended)

_gaq.push(['_setLocalGifPath', 'http://mysite.com']);

parameters

String   newLocalGifPath Path to GIF file on the local server.


_setLocalRemoteServerMode()

_setLocalRemoteServerMode()

Invoke this method to send your tracking data both to a local server and to the Google Analytics backend servers. You would use this method if you are running the Urchin tracking software on your local servers and want to track data locally as well as via Google Analytics servers. In this scenario, the path to the local server is set by _setLocalGifPath().

Async Snippet (recommended)

_gaq.push(['_setLocalRemoteServerMode']);


_setLocalServerMode()

_setLocalServerMode()

Invoke this method to send your tracking data to a local server only. You would use this method if you are running the Urchin tracking software on your local servers and want all tracking data to be sent to your servers. In this scenario, the path to the local server is set by _setLocalGifPath().

Async Snippet (recommended)

 _gaq.push(['_setLocalServerMode']);


_setRemoteServerMode()

_setRemoteServerMode()

Default installations of Google Analytics send tracking data to the Google Analytics server. You would use this method if you have installed the Urchin software for your website and want to send particular tracking data only to the Google Analytics server.

Async Snippet (recommended)

_gaq.push(['_setRemoteServerMode']);


Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.