本文最后更新于 518 天前,其中的信息可能已经有所发展或是发生改变。
发表这篇文章主要是因为手贱删了whmcs的插件 又懒得装回去 想要直接插入代码 但是插入代码后…… 懂得都懂 直接挂了 于是乎在我百般折腾下找到了以前保存的代码 在统计代码前后有一个{literal}和{/literal} 由此得出代码
{literal}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-xxxxxxxxxx"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-xxxxxxxxxx');
</script>
{/literal}