Dodano skrypt do zarządzania zgodą na przechowywanie danych w bloku SEO.
This commit is contained in:
@@ -31,6 +31,22 @@
|
|||||||
|
|
||||||
{block name='head_seo'}
|
{block name='head_seo'}
|
||||||
<title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
|
<title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
|
||||||
|
{literal}
|
||||||
|
<script>
|
||||||
|
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
|
||||||
|
// Set default consent to 'denied' as a placeholder
|
||||||
|
gtag('consent', 'default', {
|
||||||
|
'ad_storage': 'denied',
|
||||||
|
'ad_user_data': 'denied',
|
||||||
|
'ad_personalization': 'denied',
|
||||||
|
'analytics_storage': 'denied'
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
|
{hook h="displayAfterTitleTag"}
|
||||||
<meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">
|
<meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">
|
||||||
<meta name="keywords" content="{block name='head_seo_keywords'}{$page.meta.keywords}{/block}">
|
<meta name="keywords" content="{block name='head_seo_keywords'}{$page.meta.keywords}{/block}">
|
||||||
{if $page.meta.robots !== 'index'}
|
{if $page.meta.robots !== 'index'}
|
||||||
|
|||||||
Reference in New Issue
Block a user