Hi,
I would like to add to my phoenix site the google analytics javascript code, how could enable it only in production?
Which type of if I need to add to the template?
<script async src="https://www.googletagmanager.com/gtag/js?id=xyz"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'xyz');
</script>
Thanks






















