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