Skip to content

Commit

Permalink
feat(site): no gdpr for non eu
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Nov 27, 2024
1 parent 3ede32b commit 7333f46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/cookieconsent.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ export default defineNuxtPlugin(nuxtApp => {
}
}

if (!isEurope) {
enabledAnalytics();
enabledMarketing();

return;
}

document.documentElement.classList.add('cc--darkmode');

cookieConsent.run({
Expand Down

0 comments on commit 7333f46

Please sign in to comment.