Add Piwik tracking code to page footer.
authorDavid Thompson <davet@gnu.org>
Tue, 26 Aug 2014 14:43:48 +0000 (10:43 -0400)
committerDavid Thompson <davet@gnu.org>
Tue, 26 Aug 2014 14:43:48 +0000 (10:43 -0400)
2015/footer.html

index 0b4faf825d64beec456adc5a0027eb6f3989a0d5..88166e9672f579d460e0d826e3f88cd55b5593c7 100644 (file)
        src="/2015/assets/js/jquery-1.11.1.min.js"></script>
 <script type="text/javascript"
        src="/2015/assets/js/bootstrap.min.js"></script>
-  </body>
+
+<!-- - Piwik -->
+<script type="text/javascript">
+ /*
+  * |@licstart The following is the entire license notice for the JavaScript code in this page.|
+
+  * Copyright 2012 Matthieu Aubry.
+
+  * This program is free software: you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation, either version 3 of the License, or
+  * (at your option) any later version.
+
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+
+  * You should have received a copy of the GNU General Public License
+  * along with this program.  If not, see http://www.gnu.org/licenses/.
+
+  * |@licend The above is the entire license notice for the JavaScript code in this page.|
+  */
+ var _paq = _paq || [];
+ _paq.push(["trackPageView"]);
+ _paq.push(["enableLinkTracking"]);
+
+ (function() {
+   var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.fsf.org/";
+   _paq.push(["setTrackerUrl", u+"piwik.php"]);
+   _paq.push(["setSiteId", "10"]);
+   var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
+   g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<!-- - End Piwik Code -->
+
+</body>
 </html>