Skip to content

Commit

Permalink
Update js_code.phtml
Browse files Browse the repository at this point in the history
  • Loading branch information
magefan authored May 29, 2024
1 parent cb4d146 commit 10606e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/templates/js_code.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ if (!isset($escaper)) {
mfLoadGtm();
<?php } ?>

if (!window.MagefanRocketJsCustomOptimization)
if (!window.MagefanRocketJsCustomOptimization && window.require)
require(['jquery', 'Magento_Customer/js/customer-data'], function ($, customer) {
function updateMfGtmCustomerIdentifier(data) {
if (data.mf_gtm_customer_identifier) {
Expand Down

0 comments on commit 10606e4

Please sign in to comment.