Product recommendation is a premium feature. Contact your Customer Success Manager to enable it on your Kameleoon account.
- Click Settings > Recommendations.
Recommendation strategy
Create a strategy

- In the Recommendations menu, click Recommendation strategy.
- Click + Add block in the header to create a new strategy.

- Enter a name and a description.
- Define the maximum number of products to display in the block.
- Click Save.
Configure rules

- The strategy’s title and description
- The algorithms, products in block, and tags
Algorithms
Kameleoon algorithms determine which products appear in your recommendation block. You can select an algorithm, specify how many products it returns, and apply filters. If you set a limit of 10 products in the algorithm and define 6 as the block limit, the block will display 6 products. To see the list of available algorithms, refer to Select an algorithm for your product recommendation block.Select a template

Publish your strategy
Once you’re finished, click Copy code to get the generated snippet for your block. Paste it into your page’s source code where you want it to appear. You can also use Kameleoon’s Activation API to serve product recommendations. The API automatically uses your saved template.
data-recommender-item variable to specify the current product’s ID. The table below lists all available Kameleoon variables.
Consent management
Product recommendations have their own consent policy, separate from the policy for your A/B tests, feature experiments, and personalizations. You set it in the For product recommendation section of the project’s Consent tab.How configuration affects recommendations
The behavior of the recommendation engine depends on your account’s consent requirements:- When you don’t require consent: Kameleoon stores visitor data in cookies and transmits it to the recommendation module regardless of the visitor’s consent status.
- When you require consent: The consent the visitor provides determines how Kameleoon manages their data:
- Consent granted: Kameleoon stores and transmits visitor data to provide personalized recommendations based on browsing history and behavior.
- Consent not granted: Kameleoon doesn’t store visitor data in cookies. The recommendation algorithms only display products using logic or filters that don’t require visitor data, such as general popularity or static global filters.
Update your settings
To change the consent policy for product recommendations:- Click Admin > Projects.
- Click Edit on your project’s row, then click the Consent tab.
- In the For product recommendation section, click Edit.
- Select Consent required or Consent not required in Consent policy.
- Click Save changes.
Manage templates

- In the Recommendations menu, click Templates.
- Click + Add template.
- Enter a name for your template.
- Edit the template’s code to define the layout and information displayed (for example, product brand, image, or description).
- Click Save.
Customize design

- Basic editor: Customize visual elements through a simple interface.
- CSS editor: Write custom CSS for complete styling control.
FAQ
How do I publish a recommendation strategy on my website?
How do I publish a recommendation strategy on my website?
Click Copy code on your recommendation block to generate its snippet, then paste the snippet into your page’s source code where you want the block to appear.Alternatively, use Kameleoon’s Activation API to serve product recommendations. The API uses the most recent saved version of your template and returns a JSON object containing the recommended products and the template’s HTML. The API response doesn’t include CSS, so you apply styling to the output yourself.
Can I use product sizes imported from Google Merchant in Liquid recommendation templates?
Can I use product sizes imported from Google Merchant in Liquid recommendation templates?
Yes. You can use the product size as an HTML variable in your Liquid template, provided the size appears as a parameter in your data feed.