Subilan(讨论 | 贡献)2022年11月6日 (日) 11:48的版本 (创建页面,内容为“→这里的任何JavaScript将为所有用户在每次页面加载时加载。: const ga = document.createElement("script"); ga.async = true; ga.src = 'https://www.googletagmanager.com/gtag/js?id=G-CQLL9Q1TK2'; document.head.append(ga); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-CQLL9Q1TK2');”)
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 这里的任何JavaScript将为所有用户在每次页面加载时加载。 */
const ga = document.createElement("script");
ga.async = true;
ga.src = 'https://www.googletagmanager.com/gtag/js?id=G-CQLL9Q1TK2';
document.head.append(ga);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-CQLL9Q1TK2');