Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Analytics referral path (not set) but it is

This could be something I'm doing, but

5:29 pm on Jul 1, 2014 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 13, 2004
votes: 12

I've recently added some tracking events for Google Analytics. One of the strings I tack onto the event is the "document.referrer" string. I'm finding that my events frequently show referrer paths, but analytic's default tracking behavior frequently reports "(not set)" when my events report very long referral strings. I've gone so far as to create an event that is posted using gaq for every _trackPageview initiated, and again GA reports (not set) when the event reports a very long referral string. Many other Analytics data points associated with the _trackPageview "push" are accurate and complete, just the referral path seems incorrect in many cases, again in some it's OK.

I am doing one thing slightly unusual and that is dynamically loading and adding to the DOM the ga.js javascript toward the very end of the page loading process, well after the onload event. As I said, everything else in Analytic data works well, just the referral. I was tempted to post this in Google SEO, so other webmasters could be informed GA is providing incomplete referral data, but would like to find out if others agree with the appraisal.