Google Analytics Helpful Tip – Leverage _setReferrerOverride()
Continuing along in the series of helpful google analytics tips, I thought I would discuss the _setReferrerOverride() function within the Google tracking API.The _setReferrerOverride function allows you the ability to change/tweak the referrer URL. One good reason for leveraging this function is if you are using widgets or gadgets within an iFrame and wish to track these referral accurately and correctly. For referring tracking within Google Analytics, the default is to grab the document.referrer value to determine the URL. This value is then passed to utmr parameter within the GIF request to GA. Below is an example of how you would set this:pageTracker._setReferrerOverride(http://www.yahoo.com/search?q=testme)By making the above change, the campaign cookie would now store the campaign with a source of yahoo, medium of organic (since there isn’t the paid search flag within the new referrer URL) and keyword of testme.
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.


Has any one else had problems using Analytics to track certain web files through Google Analytics?
My cousin recommended this blog and she was totally right keep up the fantastic work!