Skip to content

Commit

Permalink
Merge pull request #19 from Neofox/feature/add_analytics
Browse files Browse the repository at this point in the history
add google analytics
  • Loading branch information
Neofox authored Mar 11, 2019
2 parents bb4b193 + f4a0dbd commit 8072a40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
{% endblock %}
{% block main %}{% endblock %}
{% block javascripts %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136118009-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-136118009-1');
</script>

<script src="{{ asset('js/buddy.min.js') }}"></script>
<script src="{{ asset('js/jquery-3.3.1.min.js') }}"></script>
{% endblock %}
Expand Down

0 comments on commit 8072a40

Please sign in to comment.