MediaWiki:Common.js: различия между версиями

imported>MrStonedOne
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: var _paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called befo...")
 
Нет описания правки
 
(не показаны 2 промежуточные версии 2 участников)
Строка 1: Строка 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. */
  var _paq = window._paq || [];
 
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
//  var _paq = window._paq || [];
  _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
//  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(["setCookieDomain", "*.tgstation13.org"]);
//  _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
  _paq.push(["setDomains", ["*.tgstation13.org"]]);
//  _paq.push(["setCookieDomain", "*.tgstation13.org"]);
  _paq.push(['trackPageView']);
//  _paq.push(["setDomains", ["*.tgstation13.org"]]);
  _paq.push(['enableLinkTracking']);
//  _paq.push(['trackPageView']);
  (function() {
//  _paq.push(['enableLinkTracking']);
    var u="//tgstation13.org/omo/";
//  (function() {
    _paq.push(['setTrackerUrl', u+'omo']);
//    var u="//tgstation13.org/omo/";
    _paq.push(['setSiteId', '1']);
//    _paq.push(['setTrackerUrl', u+'omo']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
//    _paq.push(['setSiteId', '1']);
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'omo.js'; s.parentNode.insertBefore(g,s);
//    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  })();
//    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'omo.js'; s.parentNode.insertBefore(g,s);
//  })();

Текущая версия от 21:33, 5 мая 2024

/* Any JavaScript here will be loaded for all users on every page load. */

//  var _paq = window._paq || [];
//  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
//  _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
//  _paq.push(["setCookieDomain", "*.tgstation13.org"]);
//  _paq.push(["setDomains", ["*.tgstation13.org"]]);
//  _paq.push(['trackPageView']);
//  _paq.push(['enableLinkTracking']);
//  (function() {
//    var u="//tgstation13.org/omo/";
//    _paq.push(['setTrackerUrl', u+'omo']);
//    _paq.push(['setSiteId', '1']);
//    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
//    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'omo.js'; s.parentNode.insertBefore(g,s);
//  })();