Stay up to date with the ProductGraph Blog

Getting ShopperApproved Ratings in your Shopify store

ShopperApproved collects store and product ratings from your customers.  They have documentation on how to get the service working on your website but do not have the specific details for implementing in Shopify stores.  So here I've got the details for that. 

 Here's the generic code that Shopper Approved provides to be added to the Shopify Thank You page.  The XXXXX's are placeholders where Shopper Approved put's their IDs for your account with them.

Shopper Approved Generic Code

<script type="text/javascript"> var sa_values = { "site":XXXXX }; sa_values['token']="XXXXX";  function saLoadScript(src) { var js = window.document.createElement("script"); js.src = src; js.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(js); } var d = new Date(); if (d.getTime() - 172800000 > 1483501530000) saLoadScript("//"); else saLoadScript("//" + d.getTime()); </script>

And here's the code after it has been edited for the Shopify's liquid code.  Changes are highlighted.

Editted Code for Shopify


Hope this helps!

ProductGraph is a certified Shopify Expert.  If you need any help with your Shopify store, we can help.

Learn More

Topics: Shopify