jQuery Useage
-
jQuery(function($) { if(typeof dataLayer == "undefined"){ dataLayer = []; } dataLayer.push({"user":{"id":1,"em":"","ph":"","fn":"","ln":"","ct":"","st":"","zp":"","country":"","external_id":1}}); });
Why are we using jQuery here? My WordPress site doesn’t use jQuery besides on the checkout, and that will go away once I move to the block checkout. Please use vanilla JavaScript.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘jQuery Useage’ is closed to new replies.