Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Allan Gourdie commented on Tracking ROI/conversion using API

$
0
0

If you don't want to manually edit cart.liquid, you could write some javascript that looks for the presence of the cart object within the HTML and then insert a new hidden element within the form.

Something along the lines of... 

(function(){

  var cart = document.getElementById("cartform");

  if ((cart !== null) ...

})();


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>