Move the analytics script to the booking message page

This commit is contained in:
Alex Tselegidis 2022-01-19 10:25:04 +01:00
parent 821afb2211
commit 88b8742b10
2 changed files with 10 additions and 6 deletions

View file

@ -62,9 +62,6 @@
<?php component('js_vars_script') ?>
<?php component('js_lang_script') ?>
<?php component('google_analytics_script', ['google_analytics_code' => vars('google_analytics_code')]) ?>
<?php component('matomo_analytics_script', ['matomo_analytics_url' => vars('matomo_analytics_url')]) ?>
<?php slot('scripts') ?>
</body>

View file

@ -3,14 +3,21 @@
<?php section('content') ?>
<div>
<img id="message-icon" src="<?= $message_icon ?>" alt="warning">
<img id="message-icon" src="<?= vars('message_icon') ?>" alt="warning">
</div>
<div>
<h3><?= $message_title ?></h3>
<h3><?= vars('message_title') ?></h3>
<p><?= $message_text ?></p>
<p><?= vars('message_text') ?></p>
</div>
<?php section('content') ?>
<?php section('scripts') ?>
<?php component('google_analytics_script', ['google_analytics_code' => vars('google_analytics_code')]) ?>
<?php component('matomo_analytics_script', ['matomo_analytics_url' => vars('matomo_analytics_url')]) ?>
<?php section('scripts') ?>