Skip to content

Commit

Permalink
Fix google analytics script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
spothound committed Jul 7, 2024
1 parent e080c73 commit e9b4252
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cookieConsentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ const cookieConsentConfig = {
},
onConsent: function(){
if(acceptedCategory('analytics')){
// Analytics category enabled
}

if(acceptedService('Google Analytics', 'analytics')){
bootstrap().then((gtag) => {
console.log('Google Analytics is ready to use')
})
}
}
Expand Down

0 comments on commit e9b4252

Please sign in to comment.