My favorites | English | Sign in

Faster apps faster - GWT 2.0 with Speed Tracer New!

Google Analytics (Labs)

Google Analytics JavaScript Tracking Code Changelog

Subscribe Subscribe

We periodically update the Google Analytics JavaScript Tracking Code (ga.js) in order to deliver new features and to repair defects discovered in previous versions.

This page documents any changes made to ga.js. We recommend that developers periodically check this list for any new announcements. Changes will also be announced via this page's Atom feed.

Note that you and your users may not see the updated ga.js right away because:

  • Changes are incrementally rolled out over several days across Google's global data center infrastructure.
  • Users of your website may temporarily have older versions of our javascript cached in their browsers.

Release 2009-12 (December 1, 2009)

This release contains updates to the default search engine list and new functions to control cookie timeouts. In addition, the asynchronous GA snippet is launched that reduces the ga.js latency impact on the page.

  • Updated the default search engine list

    • Added Naver, Eniro and Daum search engines.
    • Removed Looksmart, Gigablast, Club-internet, Netsprint, Intera, Nostrum and Ilse from the list.
  • Added functions to control cookie expiration times for all stored cookies. Deprecated existing cookie timeout functions. See the JS API documentation for more details.

    • _setVisitorCookieTimeout(cookieTimeoutMillis) replaces the _setCookiePersistence function.
    • _setSessionCookieTimeout(cookieTimeoutMillis) replaces the _setSessionTimeout function.
    • _setCampaignCookieTimeout(cookieTimeoutMillis) replaces the _setCookieTimeout function.
  • Launched asynchronous GA snippet. See documentation on how to try it out.

  • _setVar function is now deprecated. Custom Variables feature replaces _setVar. See documentation for more details.

Release 2009-11 (November 4, 2009)

This release contains:

  • Added a new function to retrieve visitor level custom variables. See the function documentation for more details.

    • _getVisitorCustomVar(index)
  • Instead of waiting for window.onload, Site Overlay content is loaded as soon as ga.js is executed.

Release 2009-10 (October 14, 2009)

This release contains a new feature:

  • Added an optional boolean parameter to _addOrganic function to specify if new organic sources are added to the beginning or the end of the organic source list. See the documentation for more details.

    • _addOrganic(newOrganicEngine, newOrganicKeyword, opt_prepend)

Release 2009-09 (September 28, 2009)

This release contains regular maintainance for performance improvements and refactorings. There is no change to the public APIs or functionality.

Release 2009-08 (August 31, 2009)

This release contains multiple bug fixes and performance improvements:

  • Proper encoding for search terms for organic searches, web page path info for (utmp), and user defined values when used with the linker feature (ie: _link and _linkByPost functions).
  • The search engine Rambler is added to the organic search list
  • Organic search parsing is corrected for search engine http://kvasir.no
  • New organic search engines defined by the user are now added to the top of the list
  • Removed deprecated _trackEvent(action, label, value) function and replaced it with _trackEvent(category, action, label, value)
  • Referrer URLs are now stored as case sensitive. For example: www.domain.com/PaGe.HtMl will be reported with case information.
  • Added a 1200 character limitation to GASO token size.
  • New function was added to allow overriding the default timeouts for cookies: _setCookiePersistence(timeout)

Back to top