Skip to content

Commit

Permalink
add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellewei committed Sep 23, 2020
1 parent e659c81 commit 003f19c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 5 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,8 @@
}
}
},
"defaultProject": "celostats-frontend"
}
"defaultProject": "celostats-frontend",
"cli": {
"analytics": "719689f5-878e-48c1-8b45-86be7abef84e"
}
}
11 changes: 11 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<link rel="manifest" href="manifest.webmanifest">
<meta name="theme-color" content="#2e3338">

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

gtag('config', 'UA-114376610-3');
</script>

</head>
<body>
<app-root></app-root>
Expand Down

0 comments on commit 003f19c

Please sign in to comment.