Set referrer to just url without paths
This commit is contained in:
parent
fd8a062527
commit
f864703a7b
@ -1,7 +1,10 @@
|
||||
<div id="goatcounter-analytics">
|
||||
<script>
|
||||
window.goatcounter = {
|
||||
// prepend the url to the path
|
||||
path: function(p) { return location.host + p }
|
||||
// normalize referrer to just the URL
|
||||
referrer: function(r) { new URL(document.referrer).origin }
|
||||
}
|
||||
</script>
|
||||
<script data-goatcounter="https://exu.goatcounter.com/count"
|
||||
|
Loading…
Reference in New Issue
Block a user