Skip to content

Commit

Permalink
Merge pull request #257 from taoufiqaitali/patch-2
Browse files Browse the repository at this point in the history
fix issue with multiple GTM IDs
  • Loading branch information
jissereitsma authored Nov 21, 2024
2 parents 5b2b9bc + b1417bc commit f5ab909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/templates/script.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $events = ($config->waitForUserInteraction() === false)
j.async = true;
j.src = '<?= $config->getGoogleTagmanagerUrl() ?>' + '/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', '<?= $config->getId() ?>');
})(window, document, 'script', 'dataLayer', '<?= $gtmId ?>');
<?php endforeach; ?>
}

Expand Down

0 comments on commit f5ab909

Please sign in to comment.