MediaWiki:Common.js:修订间差异
跳转到导航
跳转到搜索
(创建页面,内容为“→这里的任何JavaScript将为所有用户在每次页面载入时加载。: (function() { var b = document.documentElement; b.setAttribute('data-platform', na…”) |
无编辑摘要 |
||
| (未显示同一用户的2个中间版本) | |||
| 第3行: | 第3行: | ||
var b = document.documentElement; | var b = document.documentElement; | ||
b.setAttribute('data-platform', navigator.platform ); | 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'); | |||
})(); | })(); | ||
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');
})();