More actions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* |
|||
/* Any JavaScript here will be loaded for all users on every page load. */ |
|||
* This is the JS for all skins (for both mobile and desktop) on MediaWiki.org. |
|||
* Consider whether you can use a gadget with one of the options set to limit |
|||
* where it is loaded. See [[Extension:Gadgets#Options]]. |
|||
*/ |
|||
/* global mw, $ */ |
|||
(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://upcomer.com/plow.lite.js","snowplow")); |
(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://upcomer.com/plow.lite.js","snowplow")); |
||
Revision as of 03:31, 28 November 2024
/*
* This is the JS for all skins (for both mobile and desktop) on MediaWiki.org.
* Consider whether you can use a gadget with one of the options set to limit
* where it is loaded. See [[Extension:Gadgets#Options]].
*/
/* global mw, $ */
(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://upcomer.com/plow.lite.js","snowplow"));
window.snowplow('newTracker', 'sp1', 'https://spc.upcomer.com/', { appId: 'upcomer-web' });
window.snowplow('trackPageView');
window.snowplow('enableActivityTracking', { minimumVisitLength: 5, heartbeatDelay: 10 });