arp242 / goatcounter

Easy web analytics. No tracking of personal data.
https://www.goatcounter.com
Other
4.45k stars 179 forks source link

passing full url inside path with window.goatcounter.path = window.location.href #719

Closed ducktype closed 5 months ago

ducktype commented 7 months ago

Hi i'm tracking multiple sites and i don't want to create different instances of goatcouter will be enough if the path can show the full url instead of only the path of the request, it's possible?

arp242 commented 5 months ago

You can pass anything as the "path", including a full URL. However, it must always start with a / (will be added automatically if it doesn't have it), so it will show as such:

cap-2024-04-08T18:09:49_border

Personally I'd say that's fine.