fix
This commit is contained in:
@@ -3,13 +3,15 @@ import type { CookieConsentConfig } from "vanilla-cookieconsent";
|
||||
export const config: CookieConsentConfig = {
|
||||
guiOptions: {
|
||||
consentModal: {
|
||||
layout: "box inline",
|
||||
layout: "box",
|
||||
position: "bottom left",
|
||||
equalWeightButtons: false,
|
||||
flipButtons: false,
|
||||
},
|
||||
preferencesModal: {
|
||||
layout: "box",
|
||||
position: "right",
|
||||
equalWeightButtons: true,
|
||||
equalWeightButtons: false,
|
||||
flipButtons: false,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ import Footer from "./_components/Footer.astro";
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="pt-br">
|
||||
<html lang="pt-br" class="cc--darkmode">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
@@ -25,7 +25,7 @@ import Footer from "./_components/Footer.astro";
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-GSTQ17E9DJ"
|
||||
></script>
|
||||
|
||||
<script is:inline type="text/partytown">
|
||||
<script is:inline data-category="analytics" type="text/partytown">
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
@@ -42,18 +42,15 @@ import Footer from "./_components/Footer.astro";
|
||||
gtag("config", "G-GSTQ17E9DJ");
|
||||
</script>
|
||||
|
||||
<!--- enable analytics when "analytics" category is selected --->
|
||||
<script type="text/plain" data-cookiecategory="analytics">
|
||||
gtag("consent", "update", {
|
||||
analytics_storage: "granted",
|
||||
});
|
||||
</script>
|
||||
|
||||
<!--- enable ads when "ads" category is selected --->
|
||||
<script type="text/plain" data-cookiecategory="ads">
|
||||
gtag("consent", "update", {
|
||||
ad_storage: "granted",
|
||||
});
|
||||
<script is:inline data-category="analytics">
|
||||
function updateConsents() {
|
||||
gtag("consent", "update", {
|
||||
ad_storage: "granted",
|
||||
ad_user_data: "granted",
|
||||
ad_personalization: "granted",
|
||||
analytics_storage: "granted",
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user