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:
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 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.
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.
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)This release contains regular maintainance for performance improvements and refactorings. There is no change to the public APIs or functionality.
This release contains multiple bug fixes and performance improvements:
_link and _linkByPost functions)._trackEvent(action, label, value) function and replaced it with _trackEvent(category, action, label, value)_setCookiePersistence(timeout)