mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
doc: Keep referrer info for Google Analytics
This commit is contained in:
parent
7693a02871
commit
6497b1102c
@ -10,5 +10,10 @@
|
||||
return;
|
||||
}
|
||||
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;
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user