Tracking Keyword Ranking Position with Google Analytics

Google recently announced a change in the format of the referring URL for visitors finding your site through keyword searches.

The new format promises to reveal much more information about the search result rankings that was previously available, and this post will show you how to take advantage of that information to tune your SEO efforts using Google Analytics.

Starting this week, you may start seeing a new referring URL format for visitors coming from Google search result pages. Up to now, the usual referrer for clicks on search results for the term “flowers”, for example, would be something like this:

Now you will start seeing some referrer strings that look like this:

What does that mean for me?

Common speculation is that the cd parameter in the referral URL indicates the position of your page in the search results, and this has been confirmed by Matt Cutts.

Knowing what position your pages hold in the SERPS for a given keyword can be enormously helpful to your SEO efforts, so it makes sense to start tracking this new data. Prior to the change in referer, it was possible to track your SEO rankings with Google Analytics, but you could only get information about the page on which you were ranking for a keyword search, not your overall position.

Create a New Profile

You are definitely going to want to create a new profile within Google Analytics so that you do not interfere with the data that is already being collected for your site (The profile that we are about to set up will only capture data for organic search results from Google that use the new referer string).

Sign in to your Google Analytics account and “Add a Profile for an Existing domain”. You can give it any name you like, I chose to use “Google SERP Ranking”.


Create the Filters

The first thing that we need to do is create a couple of filters to make sure that only organic google searches are included in this profile. Order is important, so make sure that you either create your filters in the order that they are described here, or that you go back when you are finished and reorder them appropriately.

1. Include Organic Search Results

Create your first custom include filter using the Campaign Medium filter field and a filter pattern of organic.


2. Include Google Search Results

Create another custom include filter using the Campaign Source filter field and a filter pattern of google.


3. Include New Google Referral URL

Create the final custom include filter using the Referral filter field and a filter pattern of|url).*\bcd=\d*.


4. Extract Keyword and Ranking Data

The last filter we need to create is an advanced filter that will extract data from the referal string and create custom output that will be viewable in our reports. Create an advanced custom filter, and set the pulldowns, text areas and radio buttons as shown in the screenshot. This will extract the keywords and SERP position from the referal string and replace the output with our own custom string in the format <keyword> (Rank: <position>)


For clarity, here are the three regular expressions from the previous screenshot:

$A1 (Rank: $B1)

Visualizing Results

Once you have created the new profile and filters, and have started receiving traffic, you should be able to see the keyword/ranking data in any of your reports when you change the dimension to User Defined Value.


Please share your experiences with this or any other helpful Google Analytics tricks that you use!

Update: You can also replace the %20 with a space in your reports by adding some additional filters

Chris Abernethy
PHP Wrangler, MySQL DBA, Linux SysAdmin and all around computer guy, developing LAMP applications since Slackware came on 10 floppy disks.

22 Comments on "Tracking Keyword Ranking Position with Google Analytics"

  1. bleaching property, similar tto the dental bleach used
    by dentists. This can decrease the amount of tooth pain from sensitivity that people experience when they use it.
    Garrison says that saliva protects the teeth by neutralizing acids.

  2. What’s up, always i used to check webpage posts here in the
    early hours in the break of day, since i like to gain knowledge of more and more.

  3. says:

    Also, the most effective home coffee maker should easily fit into perfectly with your kitchen.
    Over the years Breville has evolved into a legendary brand.
    This level of coffee can also be great to the office.

  4. Hello i am kavin, its my first time to commenting anyplace, when i read this piece of writing i thought i could also create comment
    due to this good article.

  5. Useful info. Lucky me I discovered your website unintentionally,
    and I am shocked why this accident didn’t came about earlier!
    I bookmarked it.

  6. Hmm is anyone else encountering problems with the images on this
    blog loading? I’m trying to determine if its a problem on my
    end or if it’s the blog. Any responses would be
    greatly appreciated.

  7. Thanks for sharing your info. I truly appreciate
    your efforts and I am waiting for your next post thanks once again.

  8. They are a very good way to promote business service. A VPN creates an encrypted connection to a third-party server,
    and all your Internet traffic is routed through that server.
    It’s probably some mix of the two, so I have to give him props for not going too far
    in either direction.

  9. WOW just what I was searching for. Came here by searching for advice

  10. What’s up to all, since I am truly eager of reading this
    web site’s post to be updated daily. It consists of fastidious information.

  11. Tammie says:

    Finally, replace the bag and clean or replace the now dirty
    exhaust filter. Whether you buy OEM vacuum cleaner bags or after-market ones, you do not need to buy
    them straight from the company. A sternum clip also assists in giving you more support.

  12. Hello friends, how is all, and what you wish for to say
    concerning this article, in my view its in fact remarkable
    in support of me.

  13. Я любопытно узнать, что блог система вам случится быть использования ?
    Я имеющие некоторых незначительную безопасности проблемы с моего последнего
    сайт и Я бы хотелось найти
    что-то более безопасно . Есть ли у вас предложения ?

  14. says:

    If some one desires skillful landscape concerning running a blog afterward that i recommend him/her to expenditure a visit this webpage, Keep up the nice job.

  15. Shad says:

    I think the admin of this website is genuinely working hard in favor of his website, as here every material is quality based stuff.

  16. Michale says:

    I know this web page presents quality based articles and other
    stuff, is there any other web site which offers these information in quality?

  17. Fine instruction of explaining, and agreeable article to take information regarding my presentation subject matter, which i am going to convey among institution of higher education.

  18. says:

    What a agreeable YouTube movie it namely Remarkable, I loved it, and I am sharing this YouTube film with entire my friends.

  19. Really useful….looking forwards to returning.|

  20. NBA says:

    Passion the site– extremely user friendly and great deals to see!

  21. seo vendors says:

    What a great read! If I can pull all that together I should be able to get somewhere.

  22. naturally like your web site however you need to test the
    spelling on several of your posts. Several of them are rife
    with spelling issues and I in finding it very troublesome to inform the truth then again I will surely come again again.

Got something to say? Go for it!