mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-11 05:32:40 +01:00
truncating referrer
This commit is contained in:
parent
246796edd7
commit
87bdb7ab4c
@ -5,6 +5,13 @@
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{{trackerId}}}', 'auto');
|
||||
|
||||
if (window.URL && document.referrer) {
|
||||
ga("set", "referrer", (new URL(document.referrer)).origin);
|
||||
} else {
|
||||
ga("set", "referrer", "");
|
||||
}
|
||||
|
||||
ga('set', 'anonymizeIp', true);
|
||||
ga('send', 'pageview');
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user