Google Analytics: Adding search engines in the new version
As Google Analytics unlocked a few new features, they also made the new ga.js the default. I'm working on upgrading my Google Analytics for WordPress plugin to work with the new version, but I though I'd let you guys know some of the things I ran into. The first one is that adding search engines now has a different, and in my opinion much more readable, code:
[code lang="javascript"]
pageTracker._addOrganic("name_of_searchengine","q_var");
[/code]
I've got a new version of the custom_se.js for those who want it, you can download it here, and you can find the official documentation here.
Related posts
- Google Analytics: adding search engines
- Image search keyword tracking with the new Google Analytics
- Getting Google Analytics to extract keywords from Google Image searches
- Google Analytics and Google Image search: revisited
- WordPress Google Analytics 2.3: XHTML strict







Thanks for the update man.
hi, how can I add two or more search engines?
In the old version you should add to analytics code something like [+1], [+2] etc. for each search engines, but how it works with new analytics code, please?