Added UserID tracking
This commit is contained in:
parent
d6c19862de
commit
a164b228e6
|
@ -58,6 +58,9 @@
|
||||||
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"]);
|
||||||
|
{% if order %}
|
||||||
|
_paq.push(['setUserId', '{{order.code}}']);
|
||||||
|
{% endif %}
|
||||||
_paq.push(['trackPageView']);
|
_paq.push(['trackPageView']);
|
||||||
_paq.push(['enableLinkTracking']);
|
_paq.push(['enableLinkTracking']);
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -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>
|
||||||
|
{% if order %}
|
||||||
<a style="float:right;" href="/manage/logout">Logout</a>
|
<a style="float:right;" href="/manage/logout">Logout</a>
|
||||||
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% block main %}{% endblock %}
|
{% block main %}{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue