blaumedia / go-gtm-ga-proxy

Bypass any tracking-blocking browser plugins with this first-party-tracking-proxy for Google Tag Manager and Google Analytics.
MIT License
34 stars 5 forks source link

feat: allow ENDPOINT_URI/COOKIE_DOMAIN to be unset, default to Host: header #2

Closed donbowman closed 3 years ago

donbowman commented 3 years ago

In some environments a website will have more than one domain name, serving the same content. This makes it impossible to set ENDPOINT_URI/COOKIE_DOMAIN as server environment variables.

If ENDPOINT_URI is unset, use Host: header in its place. Update cache path to be qualified by it.

Allow COOKIE_DOMAIN to be unset.

dnnspaul commented 3 years ago

Hi Don! I'll have a closer look within the next 36 hours. Thanks for your contribution!