Skip to content

Commit

Permalink
Add google analytics tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Oct 1, 2018
1 parent 340d0b1 commit 33cf689
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phoenix/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'favicon-32x32.png' %}" />
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'favicon-16x16.png' %}" />

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

gtag('config', 'UA-126475790-1');
</script>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
Expand Down

0 comments on commit 33cf689

Please sign in to comment.