Add support for Google instant

Avatar

Avatar

ryanj89317

Avatar

ryanj89317

ryanj89317

13-09-2010

It would be great if Omniture could collect the oq= parameter from the referer string passed over from Google.  oq= shows what the user typed into the box, as opposed to q= which shows the search query Google returned results for.

 

ideally, I'd love to look at a keyword report, click on one specific keyword, and then see all of the oq= variations that are associated with that keyword.

 

Also, it might be useful to just show all the oq= variations in their own report.

4 Comments (4 New)
4 Comments

Avatar

Avatar

ryanj89317

Avatar

ryanj89317

ryanj89317

13-09-2010

The goal here is to use the data to learn how users refine their search terms.  One could then use that information to help guide their on-site content and SEO strategies.

Avatar

Avatar

benjamingaines2

Avatar

benjamingaines2

benjamingaines2

13-09-2010

This is a good suggestion. While we look at the best way to report on Google Instant, you can start by doing something like this:

 

if(document.referrer.indexOf('google.com') > -1 && document.referrer.indexOf('oq=') > -1) {

s.propX=s.getQueryParam('oq',,document.referrer);

}

 

This will grab the value of oq= out of the referrer and put it into s.propX (whichever Custom Traffic variable you want). Then you can correlate that variable with Search Keywords to see how users refined their search terms while using Google Instant.

Avatar

Avatar

elena74776

Avatar

elena74776

elena74776

20-09-2010

Hi Benjamin,

I test your advice, I insert into JS s_code.js your code, but the s.propX is empty, there's no data.

This happens because the query string parameter "oq" is not present in the referrer, it's only present when you are typing on google.com your keyword, but when you click on a search result, the referrer does not contain the "oq" parameter (it contains only "q", the keyword suggested by google).

Moira

Avatar

Avatar

benjamingaines2

Avatar

benjamingaines2

benjamingaines2

21-09-2010

Moira,

 

That's correct. The snippet of code I provided only executes if oq= is present. . . I believe Google has stated that it won't always be there, and may not even be related to Instant Search. Others believe that it is related to Google Instant. The point of my code snippet is that you can always capture query string parameters that are present in the referrer if you want to do so prior to official support for something like the oq= parameter.

 

Thanks,

Ben Gaines
Product Manager
Adobe Systems, Inc.