Skip to content

Commit

Permalink
production-staging: fixed bug re cookieconsent
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchiramoitra committed Jan 6, 2022
1 parent 09bb23c commit ef434de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class Analytics {
// else we do not consider any filtering for cookie consent.
this.clientIntegrations = this.clientIntegrations.filter((intg) => {
return (
integrations[intg.name] != undefined &&
!cookieConsent || // check if cookieconsent object is present and then do filtering
(cookieConsent && cookieConsent.isEnabled(intg.config))
);
Expand Down

0 comments on commit ef434de

Please sign in to comment.