Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
(function() { | (function() { | ||
− | var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.unpm.org/ | + | var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.unpm.org/piwik/"; |
_paq.push(["setTrackerUrl", u+"js/"]); | _paq.push(["setTrackerUrl", u+"js/"]); | ||
_paq.push(["setSiteId", "1"]); | _paq.push(["setSiteId", "1"]); |
Revision as of 00:52, 8 December 2014
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.unpm.org/piwik/";
_paq.push(["setTrackerUrl", u+"js/"]);
_paq.push(["setSiteId", "1"]);
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+"js/"; s.parentNode.insertBefore(g,s);
})();