Skip to content

Commit

Permalink
feat: add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
oct16 committed Mar 17, 2020
1 parent eff903b commit 88feaea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ <h1>todos</h1>
})

</script>

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

</html>
9 changes: 9 additions & 0 deletions packages/player/src/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@
</svg>
</div>
</div>

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

0 comments on commit 88feaea

Please sign in to comment.