Added UserID tracking

This commit is contained in:
Ed 2023-01-17 22:51:27 +01:00
parent d6c19862de
commit a164b228e6
1 changed files with 18 additions and 13 deletions

View File

@ -55,18 +55,21 @@
<!-- Matomo --> <!-- Matomo -->
<script> <script>
var _paq = window._paq = window._paq || []; var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setCampaignNameKey", "private_area"]); _paq.push(["setCampaignNameKey", "private_area"]);
_paq.push(['trackPageView']); {% if order %}
_paq.push(['enableLinkTracking']); _paq.push(['setUserId', '{{order.code}}']);
(function() { {% endif %}
var u="https://y.foxo.me/"; _paq.push(['trackPageView']);
_paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['enableLinkTracking']);
_paq.push(['setSiteId', '2']); (function() {
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; var u="https://y.foxo.me/";
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); _paq.push(['setTrackerUrl', u+'matomo.php']);
})(); _paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script> </script>
<noscript><p><img src="https://y.foxo.me/matomo.php?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript> <noscript><p><img src="https://y.foxo.me/matomo.php?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code --> <!-- End Matomo Code -->
@ -77,7 +80,9 @@
<a href="/manage/welcome">Your Booking</a> <a href="/manage/welcome">Your Booking</a>
{% endif %} {% endif %}
<a href="/manage/nosecount">Nose Count</a> <a href="/manage/nosecount">Nose Count</a>
<a style="float:right;" href="/manage/logout">Logout</a> {% if order %}
<a style="float:right;" href="/manage/logout">Logout</a>
{% endif %}
</nav> </nav>
{% block main %}{% endblock %} {% block main %}{% endblock %}