Check hostnames matches PLAUSIBLE_DOMAIN
This commit is contained in:
1 file changed
+1
-2
@@ -4,8 +4,7 @@ const enabled =
|
||||
PLAUSIBLE_API &&
|
||||
PLAUSIBLE_DOMAIN &&
|
||||
(location.protocol === 'http:' || location.protocol === 'https:') &&
|
||||
// once we deploy to the right domain we should also domain
|
||||
// location.hostname === PLAUSIBLE_DOMAIN &&
|
||||
location.hostname === PLAUSIBLE_DOMAIN &&
|
||||
navigator.doNotTrack !== '1';
|
||||
|
||||
const sendEvent = eventName => {
|
||||
|
||||
Reference in new issue
Block a user