chore: update to new google analytics (#7486)

This commit is contained in:
iamkun
2022-05-05 10:31:23 +08:00
committed by GitHub
parent 675311b7db
commit cb22c1af34

View File

@@ -88,7 +88,23 @@ gtag('config', 'UA-175337989-1');`,
'script',
{
async: 'true',
src: 'https://www.googletagmanager.com/gtag/js?id=G-M74ZHEQ1M1',
},
],
[
'script',
{},
`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M74ZHEQ1M1');
`,
],
[
'script',
{},
`(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:2894908,hjsv:6};