Skip to content

Commit

Permalink
Add analytics to the color picker so we can see how people use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpederson committed Apr 8, 2019
1 parent c106614 commit a038902
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion _dev/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,3 @@ $(function(){

});


10 changes: 10 additions & 0 deletions _dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,13 @@ <h4>Statistics</h4>
</div>

<script src="demo.js"></script>

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

gtag('config', 'UA-614793-2');
</script>
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ <h4>Statistics</h4>
</div>

<script src="demo.js"></script>

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

gtag('config', 'UA-614793-2');
</script>

0 comments on commit a038902

Please sign in to comment.