Skip to content

Commit

Permalink
[TASK] Use tagmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Oct 17, 2024
1 parent 62d6b7e commit e84fec6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@

{{ encore_entry_script_tags('app') }}
{% block javascripts %}{% endblock %}

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-BH2RGNELV1"></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-77390203-1', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-BH2RGNELV1');
</script>

</body>
Expand Down

0 comments on commit e84fec6

Please sign in to comment.