_setDomainName instead of
_udn). My tests show about a 100 ms faster execution even with a 24% increase (1514 bytes) in file size (ga.js is also minified).
The new tracking code makes advanced features a lot more accessible. You can now track a page on multiple Google Analytics accounts, which should help user generated content sites integrate their author’s Google Analytics IDs alongside the company’s own tracking account. The new event tracker lets you group a set of on-page related actions such as clicking a drop-down menu or typing a search query (very useful for widgets). Ecommerce tracking is now a lot more readable. You can read about all the tracker changes in the Google Analytics migration guide PDF.
Switching your site tracker is pretty simple. Trackers are now created as objects and configured before the page is tracked.
'); pageTracker._initData(); pageTracker._trackPageview(); </script>
That’s it. You are now running the new Google Analytics tracker. You’ll need to swap in your Analytics account and profile IDs, which should be pretty easy to spot in your existing code.
Google Analytics tracking code is completely rewritten for faster on-page behavior that plays well with others. The old tracker will be deprecated within a year, and new features are only available to users running the new code. Existing Google Analytics users should swap out their tracking code to take full advantage of this free stats tool.