Skip to content

Commit

Permalink
fix issue with multiple GTM IDs
Browse files Browse the repository at this point in the history
this do not take on consideration the use of multiple ids
  • Loading branch information
taoufiqaitali authored Nov 20, 2024
1 parent 5b2b9bc commit b1417bc
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 b1417bc

Please sign in to comment.