MediaWiki:Common.js:修订间差异

来自Go 1980
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
 
第5行: 第5行:
})();
})();


document.addEventListener('DOMContentLoaded', function() {
(function() {
   var ga4 = document.createElement('script');
   var ga4 = document.createElement('script');
   ga4.async = true;
   ga4.async = true;
第15行: 第15行:


   gtag('config', 'G-BT08M1KVK4');
   gtag('config', 'G-BT08M1KVK4');
});
})();

2024年7月7日 (日) 22:57的最新版本

/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
(function() {
var b = document.documentElement;
b.setAttribute('data-platform', navigator.platform );
})();

(function() {
  var ga4 = document.createElement('script');
  ga4.async = true;
  ga4.src="https://www.googletagmanager.com/gtag/js?id=G-BT08M1KVK4";
  document.body.appendChild(ga4);
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-BT08M1KVK4');
})();