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

@ -58,6 +58,9 @@
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setCampaignNameKey", "private_area"]);
{% if order %}
_paq.push(['setUserId', '{{order.code}}']);
{% endif %}
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
@ -77,7 +80,9 @@
<a href="/manage/welcome">Your Booking</a>
{% endif %}
<a href="/manage/nosecount">Nose Count</a>
{% if order %}
<a style="float:right;" href="/manage/logout">Logout</a>
{% endif %}
</nav>
{% block main %}{% endblock %}