From: David Thompson Date: Thu, 18 Sep 2014 14:28:38 +0000 (-0400) Subject: Add piwik tracking to all pages. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca13deb6622e0a9c4c1634b3f8b1061e313f7a7f;p=libreplanet-static.git Add piwik tracking to all pages. --- diff --git a/2015/assets/js/piwik.js b/2015/assets/js/piwik.js new file mode 100644 index 00000000..ad306cf4 --- /dev/null +++ b/2015/assets/js/piwik.js @@ -0,0 +1,31 @@ +/* + * |@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); +})(); diff --git a/server/2015/ahp_js.html b/server/2015/ahp_js.html index 72afe008..37aa5ef4 100644 --- a/server/2015/ahp_js.html +++ b/server/2015/ahp_js.html @@ -5,3 +5,5 @@ + diff --git a/server/2015/cfs_js.html b/server/2015/cfs_js.html index 60086ed9..17066ed4 100644 --- a/server/2015/cfs_js.html +++ b/server/2015/cfs_js.html @@ -5,3 +5,5 @@ + diff --git a/server/2015/exhibit_js.html b/server/2015/exhibit_js.html index 50c07ef4..16b4dbb5 100644 --- a/server/2015/exhibit_js.html +++ b/server/2015/exhibit_js.html @@ -23,3 +23,5 @@ + diff --git a/server/2015/getting_around_js.html b/server/2015/getting_around_js.html index 159044d4..a7d359e8 100644 --- a/server/2015/getting_around_js.html +++ b/server/2015/getting_around_js.html @@ -5,3 +5,5 @@ + diff --git a/server/2015/home_js.html b/server/2015/home_js.html index 6e903863..76a8cf24 100644 --- a/server/2015/home_js.html +++ b/server/2015/home_js.html @@ -2,40 +2,5 @@ src="/2015/assets/js/jquery-1.11.1.min.js"> - - - - - + diff --git a/server/2015/volunteer_js.html b/server/2015/volunteer_js.html index 2bd335d8..a0c3911f 100644 --- a/server/2015/volunteer_js.html +++ b/server/2015/volunteer_js.html @@ -23,3 +23,5 @@ +