Added PIWIK_SSL_URL

This commit is contained in:
Luca Chiricozzi 2015-01-10 20:04:43 +01:00
parent 6f5116dee6
commit bab35d78d6

View File

@ -2,7 +2,11 @@
<!-- Piwik --> <!-- Piwik -->
<script type="text/javascript"> <script type="text/javascript">
var _paq = _paq || []; var _paq = _paq || [];
(function(){ var u=(("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/"); (function(){ {% if PIWIK_SSL_URL %}
var u=(("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/");
{% else %}
var u=(("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/");
{% endif %}
_paq.push(['setSiteId', {{ PIWIK_SITE_ID }}]); _paq.push(['setSiteId', {{ PIWIK_SITE_ID }}]);
_paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['trackPageView']); _paq.push(['trackPageView']);