Skip to content
Snippets Groups Projects
Commit f1dcfcef authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

allow localhost production testing

parent 831cbb8a
No related branches found
No related tags found
No related merge requests found
...@@ -259,7 +259,7 @@ class MatomoTracker { ...@@ -259,7 +259,7 @@ class MatomoTracker {
export function createInstance(params: UserOptions): MatomoTracker { export function createInstance(params: UserOptions): MatomoTracker {
// if on localhost or not production, // if on localhost or not production,
// disable Matomo tracking // disable Matomo tracking
if (process.env.NODE_ENV !== 'production' || window.location.hostname === 'localhost') { if (process.env.NODE_ENV !== 'production') {
params.disabled = true params.disabled = true
} }
return new MatomoTracker(params) return new MatomoTracker(params)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment