Google recently changed the referring strings that they are using to send traffic through to sites once you click on a search result. One of the major benefits of this to analytics geeks and SEOs is that you can now see where you rank for a given keyword, and what page people go to when clicking on the search result.
A post on the Google Anayltics blog mentioned the gradual roll out of these new referring URLs for some search queries. It was pretty much immediately noticed by people like Patrick at Blogstorm that there is a number contained within the string, the example which was given being:
http://www.google.com/url?sa=t&source=web&ct=res&cd=7&url=http%3A%2F%2Fwww.example.com%2Fmypage.htm&ei=0SjdSa-1N5O8M_qW8dQN&rct=j&q=flowers&usg=AFQjCNHJXSUh7Vw7oubPaO3tZOzz-F-u_w&sig2=X8uCFh6IoPtnwmvGMULQfw
You can see cd=7 within the string, and Patrick wondered if this could be the rank that a result appears it. In the comments on the post, Matt Cutts suggested very strongly that this was the case. For the search geeks amongst us, this was fantastic news, as it means that we can now track rank against keywords and the landing page people go to.
Tracking more than most
Most other posts that I have seen on this subject have only shown how to set up analytics for rank and keyword, but not for the landing page. I happen to think that landing page is pretty important – if you’re looking to optimise on a term you need to know which page people are more likely to go to, and if you’re looking again to use something like my second page keyword targeting method, landing page is incredibly useful. Also if you’ve a number of pages that people are visiting based around one keyword, then finding the most visited of these is really useful in optimising the right page.
How to set this up then? First, create a new profile in Google Analytics, and call it something like ‘SERP result and landing page.’
Hit ‘Edit’ and add a new filter. We’ll be setting up four filters in total, the first being Google only traffic:

- Select filter type: Custom filter
Check the ‘Include’ radio button
Select Campaign Source in the Filter Field dropdown
Type ‘google’ into the Filter Pattern
Select ‘no’ from the ‘Case Sensitive’ radio buttons
Next, Create another filter called ‘search term and rank filter’

- Select filter type: Custom filter
Check the ‘Advanced’ radio button
Select Campaign Term in the Field A -> Extract A box. Enter (.*) in the text box
Select Referral in the Field B -> Extract B box. Enter (\?|&)(cd)=([^&]*) in the text box
Select Custom Field 1 in the Output To -> Constructor box. Enter $A1 | rank: $B3 in the text box
Select ‘yes’ from the ‘Field A Required’ radio buttons
Select ‘yes’ from the ‘Field B Required’ radio buttons
Select ‘yes’ from the ‘Override Output Field’ radio buttons
Select ‘no’ from the ‘Case Sensitive’ radio buttons
Next create a filter called ‘landing page’ to search for the landing page people are getting to:

- Select filter type: Custom filter
Check the ‘Advanced’ radio button
Select Referral in the Field A -> Extract A box. Enter (\?|&)(url)=([^&]*) in the text box
Leave the Field B -> Extract B box empty.
Select Custom Field 2 in the Output To -> Constructor box. Enter $A3 in the text box
Select ‘yes’ from the ‘Field A Required’ radio buttons
Select ‘no’ from the ‘Field B Required’ radio buttons
Select ‘yes’ from the ‘Override Output Field’ radio buttons
Select ‘no’ from the ‘Case Sensitive’ radio buttons
Finally, merge the last two filters together with one called ‘keyword, rank and landing page.’

- Select filter type: Custom filter
Check the ‘Advanced’ radio button
Select Custom Field 1 in the Field A -> Extract A box. Enter (.*) in the text box
Select Custom Field 2 in the Field B -> Extract B box. Enter (.*) in the text box
Select User Defined in the Output To -> Constructor box. Enter $A1, LP: $B1 in the text box
Select ‘yes’ from the ‘Field A Required’ radio buttons
Select ‘yes’ from the ‘Field B Required’ radio buttons
Select ‘yes’ from the ‘Override Output Field’ radio buttons
Select ‘no’ from the ‘Case Sensitive’ radio buttons
To get value out of this report, go to Traffic sources, Keywords and select User Defined Value in the Dimension drop down. This will give you something like this once it has run for a few days:

Note that a lot of the results have both ‘Landing Page’ and LP appearing, and that many don’t have a landing page showing. This is because I changed Landing Page to LP as it took too much space in the results, and the lack of landing pages is because I didn’t have ‘yes’ checked in the ‘Field B Required’ radio button on the last filter.
Let me know in the comments if you find this useful, or if you’ve got any suggestions for how I could tweak my filters to get even more information from these new referring strings.
Tags: advanced filters, digital marketing, Google Analytics, rankings, search engine optimisation, SEO

{ 15 comments… read them below or add one }
Nice post! Is it possiblee track directly the journey through a website for someone who used a specific keyword phrase to enter the site?
Hi Adam,
It should be possible to do that, either through funnels, landing pages or by creating custom segments. I think that it might be a pretty useful thing to know too, so I’ll have a think about it over the next couple of weeks.
On the final step to setting this up (keyword, rank, and landing page), the image shows the final parameters as being ‘yes, no, yes, no’, but the text explaining this step says it should be ‘yes, yes, yes, no’. Which is the proper group of settings?
Josh, it should be ‘yes, yes, yes, no’ – thanks for pointing that out. If you have it as ‘yes, no, yes, no’ you don’t force the landing page or ‘LP’ field to display.
Hi James,
Thanks a lot for the detailed post, I’ve followed your steps and after a few days I’ve got some data. However the majority of traffic is coming through as (not set). There are a few referrals for some keywords with rank and landing page but for some reason only a few are being tracked. Do you know why this may be happening?
Thanks.
Paddy
Another question – I’ve added this new 2nd profile for an existing site (which already has another profile for normal tracking) but it says ‘Tracking Not Installed’ for the new 2nd profile.
Do I need to add a 2nd tracking code for the 2nd profile throughout my site for it to work and will this be ok without causing any mix up of results accoss profiles?
Thanks in advance, love this tracking idea and hope to get it installed correctly…
@ Paddy Sorry for the delay in replying – been rather busy! There will not be many as the only people you’ll see coming through are those logged into a Google account, and only a few of those have this new tracking data added to their results. I believe it is something Google are trying out a the moment.
@Emerald Are you adding a profile for an existing domain? It takes a day for the data to come through. Oher than that I’m not sure. You could try looking at the analytics help centre and seeing if there’s anything there that could help.
James – will this filter give me the landing pages and keywords coming ONLY from Google? Or will I get ALL LPs & KWs but only RANKING on the Google KWs?
I’m trying to create a report of ALL our keywords and their landing page, the ranking is a BONUS. Any help or insight you can provide would be much appreciated!!
Donna – it will only give you the information for Google. The filters won’t give you any info on Yahoo! or Bing I’m afraid. My post on Second Page Keyword Targeting here: http://jamesmorell.com/second-page-keyword-targeting shows you very briefly how to set up custom filters for seeing which page you rank for on Yahoo! and Bing (or Live as it was then) which may help you.
Hi James,
Thanks for the reply. Yes that makes sense, hopefully Google will roll this out to more people over time.
In the process of doing this, I’ve noticed this referring site in Analytics – kw-lp-suggest.i.corp.google.com could this be referrals from people who have used Google suggest?
Paddy
Hi Leo,
Thanks for the informative post. I tried it out on one of my website. It is showing the results too. I am glad for that but isn’t it helpful if it showing which is the landing page the keyword is landing the user to. Currently it is only showing LP, some how i am not able to get value out of it. I would be glad if you can clarify my doubt.
This comment was originally posted on Leo Fogarty .com
Hi Norma
When you go to the keyword report, select the user defined value and it will display the data you want.
Cheers
Leo
This comment was originally posted on Leo Fogarty .com
I would just like to say that it has been proven, by us and by others, that GA is not all it is cracked up to be. The results are spurious when compared to a proper analytics too such as AWStats
THanks for the post. I added the code 4 months ago, but I see 90% of the visit (not set). What does that mean?
Am I missing something?
Paddy, did you ever work out what “kw-lp-suggest” is? I see it as the http_user_agent in my logs, checking all of my adwords landing pages, and oddly, even sending through dynamic keyword insertions of negatives I use. It has been checking my landing pages since january, not a lot, but a lot today….
{ 1 trackback }