This commit is contained in:
2025-05-03 21:34:19 -03:00
parent 994c463e56
commit b3152f05e9
2 changed files with 15 additions and 13 deletions

View File

@@ -35,12 +35,12 @@ export const config: CookieConsentConfig = {
'<a href="https://marketingplatform.google.com/about/analytics/terms/br/" target="_blank">Google Analytics 4</a>',
onAccept: () => {
console.log("ga4 accepted");
window.gtag("consent", "update", {
ad_storage: "granted",
ad_user_data: "granted",
ad_personalization: "granted",
analytics_storage: "granted",
});
// window.gtag("consent", "update", {
// ad_storage: "granted",
// ad_user_data: "granted",
// ad_personalization: "granted",
// analytics_storage: "granted",
// });
},
onReject: () => {
console.log("ga4 rejected");