Google Analytics: How to track Google Keyword Ranking from your Visitors
- 16.04.2009
- Eivind Savio
In a blog post from the Google Analytics team a couple of days ago, Google announced some changes to their URLs. Blogstorm did investigate these new URLs further, and asked the question: Google Adds Ranking Data to Referrer String? They were correct about their assumptions.
So - here is how you can track keyword and keyword rankings with Google Analytics, and a couple of things you should be aware of.
The first thing you must do is create a new Google Analytics profile. When this is done we will have to create some filters.
Creating the Google Analytics filters
There may be a simpler method for doing this, but I have only had under a day of testing my solution, so please bear with me.
The first thing to do is to create som filters that includes only visitors from Google organic search.
The Google Analytics filter above includes only organic traffic.
The Google Analytics filter above includes only traffic from Google.
Grab the keyword and add the ranking
The filter below is the vital filter. This filter will grab the keyword, and add the ranking the keyword had when the visitor clicked on it.
The filter above is a modified filter "inspired" from a blog post from Yoast from January about tracking SEO rankings.
This is "all" you have to do to track keywords and rankings from your visitors from Google. After a while the "User Defined" report should look like this.

There are however a couple of things you should be aware of.
1. (For the moment?) not all visitors from Google organic search are sending ranking information. This means that ranking for all of your keywords will not be tracked.
2. If elements from Universal Search (images, videos etc.) is part of the SERP (Search Engine Ranking Page), they will also be counted.
This means that if there for example are 2 images at the top of the result, and you are listed as the last result on the page, your rank will be 12 (2 images + 10 organic listings). However, if you go to page 2 in the result, the first result on that page will have rank 11.
This means that if your rank is 11, you could be listed on page 1, but you could also be listed on page 2. To identify which page the ranking parameter comes from I use Advanced Segmentation.
To be able to to make this segmentation work, you will have to implement a filter that can track Full Referral Path. Don't be confused by the title "How to track Google Searchwiki", the filter is shown in that article.
Google Analytics Advanced Segmentation
Below you will find two different Advanced Segments.
The first segment will identify visitors that came from page 1 in the Google search result.
| Matches regular expression: | https?:\/\/(w{3})?\.?google.*(&|\?)q=.* |
| Does not match regular expression: | https?:\/\/(w{3})?\.?google.*(&|\?)q=.*&start=[1-9] |
The Advanced Segment below will identify visitors that came from page 2 in the Google search result.
| Matches regular expression: | https?:\/\/(w{3})?\.?google.*(&|\?)q=.*&start=10 |
If you want to identify visitors from page 3, just replace start=10 with start=20 in the regular expression above.
These regular expressions are written by Maarten Berge, and has been published here in a Norwegian blog post earlier.
Some final words
Just so I have mentioned it again. I have less than a day with testing, so I don't guarantee that everything are tested good enough. If you spot any faults or make any improvements to the solution, please add a comment.
Happy tracking.
Du kan følge kommentarer til denne posten med RSS. Du må ha javascript aktivert for å kunne kommentere. Tilbaketråkk er deaktivert.
- Comments are closed
- Kenneth Dreyer
- 17.04.2009 06:06:40
- Eivind Savio
- 17.04.2009 07:25:39
If the ranking go up - or down, these changes will be reflected in your analytics reports, but only if the search phrase sends you visitors and ranking information.
- KC
- 12.11.2010 22:20:13
Or are you showing 2 separate profiles that could be created to achieve the same thing?
Thank you for your time and attention.
PS does this still work with google instant?
- Eivind Savio
- 13.11.2010 13:13:20
To answer your questions:
The filters should be in the order as they are presented in this blog post.
You can track everything within the same profile. However, I had to change the tracking of Full Referral Path. Instead of sending the output to Campaign Content, I'm also sending this output to User Defined. This means that the User Defined report can be messy.
The reason for sending the output to User Defined is that Google Analytics stopped showing organic URLs in my reports when the output were sent to Campaign Content.
Regarding your question about Google Instant. I haven't done extensive tests, but from what I can see the answer to your question is yes, it should also work with Google Instant.
XClick to move the comment field