Overwriting the s.referrer
Hello,
I wrote the following code to re-write the s.referrer if they are coming to the site using a tracking code, providing a better indicator of the channel breakdown when looking at the referrer reports, rather than place all of them under the "typed/bookmark" bucket:
if(window.document.URL.indexOf("did") > -1) {
s.referrer = "display.campaing/"+s.campaign;}
else if(window.document.URL.indexOf("eid") > -1) {
s.referrer = "email://email.campaing/"+s.campaign;}
else if(window.document.URL.indexOf("gid") > -1) {
s.referrer = "game.campaing/"+s.campaign;}
else if(window.document.URL.indexOf("sid") > -1) {
s.referrer = "socialpaid.campaing/"+s.campaign;}
else if(window.document.URL.indexOf("smid") > -1) {
s.referrer = "socialmanaged.campaing/"+s.campaign;}
else if(window.document.URL.indexOf("xid") > -1) {
s.referrer = "test.campaing/"+s.campaign;}
The issue that I'm having is that although the s.referrer is re-written, I'm not seeing the data in the UI. When AppMeasurement was created, does it have a condition that prevents the s.referrer from setting? Any help will be greatly appreciated.
Thanks,
Ridder H. Manzanet