My favorites | English | Sign in

Faster apps faster - GWT 2.0 with Speed Tracer New!

Google Analytics

Tracking API: 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.

    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.

    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.

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

_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().

_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.