How To Capture Google Search Ranking in Omniture SiteCatalyst
Are you one of the many who missed out on the complimentary VISTA rule that would capture Google’s organic search ranking and pass it into your report suite? If you are, don’t fret. This posting will explain from a code perspective how to grab it and use it.
First off, the logic necessary is the same logic I used in an earlier post to show how to grab referring domain and capture that into an sprop and evar. The logic:
if (document.referrer != ” && document.referrer != ‘undefined’ && !(document.referrer.indexOf(“domain.com”) > -1)) {
var refStringArray = document.referrer.split(‘&’);
if (refStringArray != ‘undefined’ && refStringArray.length > 0) {
s.prop1 = s.eVar1 = refStringArray[3];
}
}
Now you will have the ability to correlate search keywords by google search ranking without having to pay engineering services for a VISTA rule (savings of $1500).
** Please remember that Google hasn’t rolled out this functionality across all searches so some referers might not contain this. You can add a null check to the code to make sure that if null is present, pass N/A or something like that.
Written by:
Dorian D. Regester
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

