Introduction
The API-documentation will guide you on how to use the REST-API or JavaScript SDK to set up the Hello Retail Search & Recommendation products. You have access to the JavaScript SDK if you have the tracking script added to your website. You can find the script in the menu under Settings -> Tracking Script.
Due to historic reasons the API is located on the addwish.com domain.

Event binding

When using the JavaScript SDK it is important that you ensure that the Hello Retail (addwish) script has been loaded before calling the methods. In most cases it means wrapping the calls in an event-binding method like:
_awev=(window._awev||[]);_awev.push(["bind", "context_ready", some_callback_method()]);
You can read more about the event-binding options here.

General support documentation

If you are looking for general support documentation it can be found here.
If you want a cookbook on how to begin setting up the solution through the API then read this support article.
If you can’t find the answer you are looking for here, then please feel free to reach out to the Hello Retail support team via phone or email.

Working from localhost

Working from a localhost, you can pull the data from a specific webshop you are developing for. To do that, you need to add a website_uuid parameter to the Hello Retail JavaScript.
You can find the website_uuid parameter by navigating to the Settings on the Dashboard, then clicking on the Website Settings in the dropdown menu, and proceeding to the Website unique id from the General section, where you can copy the value and paste it into your Hello Retail script.
<script>
(function() {
var aws = document.createElement(‘script’);
aws.type = ‘text/javascript’;
if (typeof(aws.async) != "undefined") { aws.async = true; }
aws.src = ‘https://d1pna513xsntoj.cloudfront.net/scripts/company/awAddGift.js#{{partner id }},tracking_optout=true,{{website_uuid}}’;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(aws, s);
})();
</script>
Last modified 27d ago