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:

pageTracker._addOrganic("name_of_searchengine","q_var");

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.

Yoast.com runs on the Genesis Framework

Genesis theme frameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides you with the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Read our Genesis review or get Genesis now!

4 Responses

  1. JonathanBy Jonathan on 13 December, 2007

    Thanks for the update man.

  2. TomekBy Tomek on 13 May, 2008

    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?

Trackbacks

  1. [...] hier al meerdere keren over geschreven is door diverse mensen mis ik toch nog een paar details. En daarom hier een [...]

  2. [...] For this to work you do need to add images.google.com, and possibly local versions as a search engine. To do that read my small info on how to add extra search engines in the new Google Analytics. [...]