Skip to content

Commit

Permalink
Added default google consent state script
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Dec 22, 2024
1 parent 5ad1c0b commit 2b6ae20
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions web/landing/templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@
<link rel="stylesheet" href="{{ asset('styles/app.css') }}">
{% endblock %}

<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("consent", "default", {
ad_storage: "denied",
ad_user_data: "denied",
ad_personalization: "denied",
analytics_storage: "denied",
functionality_storage: "denied",
personalization_storage: "denied",
security_storage: "granted",
wait_for_update: 2000,
});
gtag("set", "ads_data_redaction", true);
gtag("set", "url_passthrough", true);
</script>

<script id="cookiepal" type="text/javascript" src="https://cdn.cookiepal.io/client_data/944894ea-9256-4fa5-817f-349b548cf43f/script.js"></script>
{% block javascripts %}
<script>
Expand Down

0 comments on commit 2b6ae20

Please sign in to comment.