Google Analytics 📊
This commit is contained in:
parent
57d7737d8b
commit
e273863f4e
2 changed files with 11 additions and 0 deletions
10
index.html
10
index.html
|
@ -74,5 +74,15 @@
|
||||||
<script src="./vendor/js/fetch.js"></script>
|
<script src="./vendor/js/fetch.js"></script>
|
||||||
<script src="./vendor/js/vue.min.js"></script>
|
<script src="./vendor/js/vue.min.js"></script>
|
||||||
<script src="./dist/app.js"></script>
|
<script src="./dist/app.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
|
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-85374505-1', 'auto');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -47,6 +47,7 @@ let app = new Vue({
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
newStack() {
|
newStack() {
|
||||||
|
ga('send', 'event', 'UI', 'button', 'Generate Stack');
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.stack = generateStack()
|
this.stack = generateStack()
|
||||||
.then(stack => {
|
.then(stack => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue