Skip to content

Commit 58ebdc2

Browse files
authored
Update js_code.phtml
1 parent f45f04e commit 58ebdc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/templates/js_code.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ $script = '';
187187
<?php $script .= "
188188
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
189189
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
190-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
190+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.setAttributeNode(d.createAttribute('data-ot-ignore'));j.async=true;j.src=
191191
'https:' + '/' + '/' + 'www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
192192
})(window,document,'script','dataLayer','{$escaper->escapeHtml($block->getPublicId())}');
193193
"; ?>

0 commit comments

Comments
 (0)