Skip to content

Commit

Permalink
Fix check for datalayer
Browse files Browse the repository at this point in the history
  • Loading branch information
mangrose committed May 8, 2023
1 parent 1810423 commit f74ceac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/class-tulo-payway-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private function get_data_layer() {
}
$userProducts = json_encode($this->session->get_user_active_products());
}
return ' if (dataLayer!==undefined) { dataLayer.push({"tulo": {"user" : { "id": "'.$userId.'", "email": "'.$userEmail.'", "customer_number": "'.$userCustomerNumber.'", "products":'.$userProducts.'}}}); }';
return ' if (window.dataLayer!==undefined) { dataLayer.push({"tulo": {"user" : { "id": "'.$userId.'", "email": "'.$userEmail.'", "customer_number": "'.$userCustomerNumber.'", "products":'.$userProducts.'}}}); }';
}

private function get_local_storage() {
Expand Down

0 comments on commit f74ceac

Please sign in to comment.