X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e8c927ea641242b67331a919e6e4069d7029473c..e3b9ec6181cd2ad092f909c9f72366e22d90cb7c:/src/wolnelektury/templates/piwik/tracking_code.html?ds=inline

diff --git a/src/wolnelektury/templates/piwik/tracking_code.html b/src/wolnelektury/templates/piwik/tracking_code.html
index a5c8b95e8..b70225eea 100644
--- a/src/wolnelektury/templates/piwik/tracking_code.html
+++ b/src/wolnelektury/templates/piwik/tracking_code.html
@@ -1,8 +1,8 @@
 <!-- Matomo -->
 <script type="text/javascript">
   var _paq = window._paq || [];
-  {% for ab, abval in AB.items %}
-    _paq.push(['setCustomVariable', '{{ forloop.counter }}', "{{ ab }}", "{{ abval }}", "visit"]);
+  {% for slug, experiment in request.EXPERIMENTS.items %}
+    _paq.push(['setCustomVariable', '{{ forloop.counter }}', "{{ slug }}", "{{ experiment.value|yesno:"on,off," }}", "visit"]);
   {% endfor %}
   _paq.push(['trackPageView']);
   _paq.push(['enableLinkTracking']);