增加对于google analytics 的支持
EasyChris opened this issue · 1 comments
EasyChris commented
能否增加对于 增加对于google analytics 的支持配置?
HCLonely commented
直接将google analytics代码添加到custom.body中即可
custom:
body: |- # 以下内容插入到</body>标签之前,可设置多行,注意每行开头至少四个空格
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-******"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-******');
</script>