Skip to content

Commit

Permalink
Fix GTM id not being passed as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ju committed Aug 30, 2018
1 parent 82df0fc commit b5cd545
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ if (!doNotTrack) {
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl+'<%= "&gtm_auth="+gtm_auth if gtm_auth %><%= "&gtm_preview="+gtm_preview if gtm_preview %>&gtm_cookies_win=x';f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer',<%= gtm_id %>);
})(window,document,'script','dataLayer','<%= gtm_id %>');
}
</script>

0 comments on commit b5cd545

Please sign in to comment.