fix(#268): remove matomo from project
parent
34dfd327bb
commit
6ed5fea40d
File diff suppressed because it is too large
Load Diff
@ -1,25 +0,0 @@ |
||||
import { createInstance } from '@jonkoops/matomo-tracker-react' |
||||
import { InstanceParams } from '@jonkoops/matomo-tracker-react/lib/types' |
||||
|
||||
import { PAGES } from 'config/pages' |
||||
|
||||
const getMatomoInstance = () => { |
||||
let matomoInstance: InstanceParams = { |
||||
siteId: 999, |
||||
urlBase: 'link.to.domain', |
||||
} |
||||
|
||||
switch (process.env.REACT_APP_CLIENT) { |
||||
case 'insports': |
||||
matomoInstance = { |
||||
...matomoInstance, |
||||
siteId: 1, |
||||
urlBase: PAGES.matomoInstatBaseUrl, |
||||
} |
||||
break |
||||
} |
||||
|
||||
return createInstance(matomoInstance) |
||||
} |
||||
|
||||
export const matomoInstance = getMatomoInstance() |
||||
Loading…
Reference in new issue