Skip to content

Commit

Permalink
feat: add ga
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 3, 2020
1 parent 3da3f23 commit 07c9445
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,15 @@ <h2 class="title">抱歉,您的浏览器版本过低,请先升级到 <a href
<![endif]-->

<app-root id="app"></app-root>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-77YVCJP4T6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-77YVCJP4T6');
</script>
</body>
</html>

0 comments on commit 07c9445

Please sign in to comment.