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.