Skip to content

Commit

Permalink
feat: umami 分析
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-zou committed Apr 28, 2024
1 parent eead5c4 commit ef10721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ hexo.extend.injector.register('head_end', '<meta name="keywords" content="前端

// 谷歌分析
hexo.extend.injector.register('head_end', '<script async src="https://www.googletagmanager.com/gtag/js?id=G-WW5WXCXDFX"></script>');
hexo.extend.injector.register('head_end', "<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-WW5WXCXDFX');</script>");
hexo.extend.injector.register('head_end', "<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-WW5WXCXDFX');</script>");

// umami 分析
hexo.extend.injector.register('head_end', '<script defer src="https://analytics.luckyzh.cn/script.js" data-website-id="823ca8ce-2d88-4db4-b9a0-c3681fb69421"></script>');

0 comments on commit ef10721

Please sign in to comment.