Skip to content

Commit

Permalink
Update Amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
artnc committed Jun 1, 2024
1 parent fa9f28b commit 8188e5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 2 additions & 9 deletions src/lib/amplitude.js

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

5 changes: 4 additions & 1 deletion src/util/tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const DO_NOT_TRACK =
if (DO_NOT_TRACK) {
setItem(LOCALSTORAGE.DNT, true);
} else {
window.amplitude.init(AMPLITUDE_API_KEY, null, { includeReferrer: true });
window.amplitude.init(AMPLITUDE_API_KEY, {
defaultTracking: true,
includeReferrer: true,
});
}

export const track = (eventName, properties = {}) => {
Expand Down

0 comments on commit 8188e5a

Please sign in to comment.