Javascript
Deploy the tracker script
If not already implemented, make sure to include the header script for our tracker to each page that will serve recommendations. Follow this guide to setup your tracker script.
Deploy the recommendation block
Place your recommendation block anywhere on the page using the following tag.
And put the following javascript code at the bottom of your page.
pid: A string of comma separated product ids. E.g. "1,2,3" tid: The id of the template you wish to display. E.g. "1"
The pid should contain the IDs of the currently viewed product and any product added to cart.
Remember to replace [ADD YOUR TRACKER KEY] with your tracker key.
Extended options
Examples
Placement
We recommend that you position the recommendations as visible as possible on the product, cart and checkout pages. The position is vital for good recommendation performance. Read more about it in our article on product recommendations.
Last updated