Browse Source

Minedu specific: added Google Analytics tracking snipped - will have to be disabled for USB key

Yannick Warnier 11 năm trước cách đây
mục cha
commit
d4f901c7bb
1 tập tin đã thay đổi với 15 bổ sung1 xóa
  1. 15 1
      main/template/minedu/layout/main_footer.tpl

+ 15 - 1
main/template/minedu/layout/main_footer.tpl

@@ -1 +1,15 @@
-{% extends app.template_style ~ "/../default/layout/main_footer.tpl" %}
+{% if show_footer == true %}
+    {% include app.template_style ~ "/layout/footer.tpl" %}
+{% endif %}
+  <script type="text/javascript">
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-41619049-1']);
+    _gaq.push(['_trackPageview']);
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = 'https://ssl.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+  </script>
+</body>
+</html>