feat: tracking integration with GTM and CMP
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
var consent = (window.CookieFirst && window.CookieFirst.consent) || { advertising: false };
|
||||
if (consent.advertising) {
|
||||
dataLayer.push({
|
||||
'event':'VirtualPageview',
|
||||
'virtualPageURL': '{{ url }}',
|
||||
'virtualPageTitle': '{{ title }}',
|
||||
'userInfo': '{{ is_granted('ROLE_USER') ? 'mitglied' : 'gast' }}'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user