From 566b83b50ba2ff8c35d09c57f069c1f8a078ed71 Mon Sep 17 00:00:00 2001 From: Ken Gullaksen Date: Fri, 20 Dec 2024 14:58:39 +0100 Subject: [PATCH] disable amplitude cookie og ip tracking dette mht ny ekomlovgivning --- src/utils/amplitude.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/utils/amplitude.ts b/src/utils/amplitude.ts index 898cd336f..adc3e5f1e 100644 --- a/src/utils/amplitude.ts +++ b/src/utils/amplitude.ts @@ -14,13 +14,10 @@ const createAmpltiudeInstance = (): AmplitudeInstance => { .init(getApiKey(), undefined, { serverUrl: 'https://amplitude.nav.no/collect', useBatch: false, - autocapture: { - attribution: true, - fileDownloads: false, - formInteractions: false, - pageViews: true, - sessions: true, - elementInteractions: false, + autocapture: false, + identityStorage: 'localStorage', + trackingOptions: { + ipAddress: false, }, }) .promise.catch((error) => {