Skip to content

Commit f5ab909

Browse files
authored
Merge pull request #257 from taoufiqaitali/patch-2
fix issue with multiple GTM IDs
2 parents 5b2b9bc + b1417bc commit f5ab909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/templates/script.phtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $events = ($config->waitForUserInteraction() === false)
3232
j.async = true;
3333
j.src = '<?= $config->getGoogleTagmanagerUrl() ?>' + '/gtm.js?id=' + i + dl;
3434
f.parentNode.insertBefore(j, f);
35-
})(window, document, 'script', 'dataLayer', '<?= $config->getId() ?>');
35+
})(window, document, 'script', 'dataLayer', '<?= $gtmId ?>');
3636
<?php endforeach; ?>
3737
}
3838

0 commit comments

Comments
 (0)