Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored Jun 4, 2024
1 parent 18db089 commit 6035d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/headless/src/app/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ function getUpdateAnalyticsConfigurationPayload(
apiBaseUrl,
};

// TODO KIT-2844
if (payloadWithURL.analyticsMode !== 'next' && doNotTrack()) {
logger.info('Analytics disabled since doNotTrack is active.');
return {
Expand Down
1 change: 1 addition & 0 deletions packages/headless/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function getObjectHash<T>(obj: T) {
}

const doNotTrackValues = new Set(['1', 1, 'yes', true]);
// TODO KIT-2844

/**
* Logic copied from coveo.analytics.
Expand Down

0 comments on commit 6035d3e

Please sign in to comment.