You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.2 KiB
26 lines
1.2 KiB
<?php if(GDPR['on']) { ?>
|
|
<script nonce="<?=$csp_nonce?>" <?=(GDPR['on'] ? GDPR['inline_src'] : '')?>>
|
|
if (GAUID) {
|
|
window.dataLayer.push({'Connected user - User scope': 'Connected users'});
|
|
}
|
|
<?php if (isset($announcement_cookie) && !isset($_COOKIE[config_item('cookie_prefix').$announcement_cookie]) && $announcement_id!='' && $expire_announcement==0) {?>
|
|
$("#announcement-modal").modal("show");
|
|
<?php }?>
|
|
|
|
<?php if ($page_title == $this->lang->line('title_event_details_page')) : ?>
|
|
<?php if (isset($_GET['event_id'])) : ?>
|
|
window.dataLayer.push({'Event_viewed_id': <?php echo $_GET['event_id']?>});
|
|
<?php endif; ?>
|
|
if (app.get_cookie('_gid') && GAUID) {
|
|
window.dataLayer.push({'Event_page_views': 'Connected'});
|
|
} else if (app.get_cookie('_gid')) {
|
|
window.dataLayer.push({'Event_page_views': 'Returning'});
|
|
} else {
|
|
window.dataLayer.push({'Event_page_views': 'New'});
|
|
}
|
|
<?php endif; ?>
|
|
<?php if (isset($_GET['word'])) : ?>
|
|
window.dataLayer.push({'FAQ search': '<?php echo $_GET['word']?>' });
|
|
<?php endif; ?>
|
|
</script>
|
|
<?php } ?>
|