MediaWiki:Common.js: Difference between revisions

Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: <!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; /* tracker methods like "..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


<!-- Piwik -->
 
<script type="text/javascript">
   var _paq = _paq || [];
   var _paq = _paq || [];
   /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
   /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
Line 15: Line 14:
     g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
     g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
   })();
   })();
</script>
 
<!-- End Piwik Code -->
// adds in the newsletter signup
/* var newsletterForm = document.createElement("script");
  newsletterForm.type = "text/javascript";
  newsletterForm.src = "https://app.sender.net/webforms/346/9a4f61b6.js?v=10";
  var nav = document.getElementById("p-navigation");
  var rent = nav.parentNode;
  rent.insertBefore(newsletterForm, nav);
*/