flex/templates/partial/gtm.html

13 lines
445 B
HTML
Raw Normal View History

2022-07-08 20:36:43 +02:00
{% if GOOGLE_TAG_MANAGER %}
2017-04-22 08:41:39 +02:00
<script>
(function(w,d,s,l,i){
w[l]=w[l]||[];
w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
j.async=true;
2018-01-06 04:09:16 +01:00
j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;
2017-04-22 08:41:39 +02:00
f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ GOOGLE_TAG_MANAGER }}');
</script>
2022-07-08 20:36:43 +02:00
{% endif %}