mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
doc: Keep referrer info for Google Analytics
This commit is contained in:
parent
7693a02871
commit
6497b1102c
@ -10,5 +10,10 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var url = 'https:' + window.location.href.substring(protocol.length);
|
var url = 'https:' + window.location.href.substring(protocol.length);
|
||||||
|
// Pass the referrer info to the new URL for Google Analytics.
|
||||||
|
if (document.referrer) {
|
||||||
|
var referrerPart = 'referrer=' + encodeURIComponent(document.referrer);
|
||||||
|
url += (location.search ? '&' : '?') + referrerPart;
|
||||||
|
}
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user