{% if app.environment == 'prod' and myapp.brandAnalytics is not empty %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ myapp.brandAnalytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ myapp.brandAnalytics }}');
</script>
{% endif %}