Skip to content

Commit

Permalink
set autocapture options to prevent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Nov 4, 2024
1 parent 6a369f0 commit da55092
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@faker-js/faker": "8.4.1",
"@grafana/faro-web-sdk": "1.3.6",
"@navikt/aksel-icons": "^5.17.2",
"@navikt/arbeidsgiver-notifikasjon-widget": "7.1.3",
"@navikt/arbeidsgiver-notifikasjon-widget": "7.1.4",
"@navikt/bedriftsmeny": "7.0.3",
"@navikt/ds-css": "^6.15.0",
"@navikt/ds-icons": "3.4.3",
Expand Down
8 changes: 8 additions & 0 deletions src/utils/amplitude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ 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,
},
})
.promise.catch((error) => {
console.error('#MSA error initializing amplitude', error);
Expand Down

0 comments on commit da55092

Please sign in to comment.