Replies: 3 comments 1 reply
-
There may be a more robust way, but the easiest way would probably be to just disable cookies and use whatever telemetry is on the server. |
Beta Was this translation helpful? Give feedback.
1 reply
-
if (CookieConsent.acceptedCategory('analytics')) {
console.log("Category analytics enable")
} To detect if a category is active or not it is possible to use this API Reference. https://cookieconsent.orestbida.com/reference/api-reference.html#acceptedcategory |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can someone help me to understand how to use the plugin with next 14? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement Google Analytics in a Next.js application using the @next/third-parties/google package in conjunction with vanilla-cookieconsent to manage cookie consent. The project structure is as follows:
_app.js
CookieConsent.tsx
CookieConsentConfig.ts
I'm not sure how to properly integrate Google Analytics using @next/third-parties/google within this setup. Specifically, I'm struggling with the following:
Beta Was this translation helpful? Give feedback.
All reactions