(sitka) fixing broken piwik tracking
authorkreed <kreed@sitka.bclibraries.ca>
Wed, 11 Dec 2013 22:18:05 +0000 (14:18 -0800)
committerkreed <kreed@sitka.bclibraries.ca>
Wed, 11 Dec 2013 22:18:05 +0000 (14:18 -0800)
Open-ILS/src/templates/opac/parts/goog_analytics.tt2

index d19c644..843ae8e 100644 (file)
@@ -22,7 +22,7 @@
   var _paq = _paq || [];
   _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
   _paq.push(["setCustomVariable", 1, "url", document.URL, "page"]);
-  _paq.push(["setCustomVariable", 2, "shortcode", [%- ENV.shortname -%], "page"];
+  _paq.push(["setCustomVariable", 2, "shortcode", "[%- ENV.shortname -%]", "page"]);
   _paq.push(["trackPageView"]);
   _paq.push(["enableLinkTracking"]);
 
@@ -36,3 +36,4 @@
 </script>
 <noscript><p><img src="https://piwik.libraries.coop/piwik/piwik.php?idsite=9&amp;rec=1" style="border:0" alt="" /></p></noscript>
 <!-- End Piwik -->
+