Documentation Index
Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
Use this file to discover all available pages before exploring further.
This 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 the latest version of your saved template.
data-recommender-item variable to specify the current product’s ID. The table below lists all available Kameleoon variables.
| Parameter | Mandatory | Description |
|---|---|---|
data-recommender-min | No | The minimum number of products in the response for the block to appear. The block is hidden if there aren’t enough products. |
data-recommender-code | Yes | Product recommendation block ID |
data-recommender-item | Yes (for some algorithms) | Current product’s ID if the user is on the product card. Mandatory for blocks with the algorithms “Similar” and “They also buy this”. |
data-recommender-exclude | No | A comma-separated list of product IDs that must be excluded from recommendations. |
data-recommender-search_query | No | The current search term. Used in a block on a search results page. |
data-recommender-callback | No | The name of the JS function where the API request’s results will be passed if a custom product recommendation handler is required. |
data-recommender-error | No | The name of the JS function that will be called if the product recommendation request fails. |
data-recommender-category | No | Recommend products only from the specified category. |
data-recommender-categories | No | Recommend products only from the specified categories (comma-separated list of category IDs). |
data-recommender-brands | No | Recommend products only from specified brands (comma-separated list of brands). |
Consent management
Kameleoon provides a native solution to manage visitor data based on the consent provided. The recommendation algorithms use or omit visitor data depending on these consent settings.How consent affects recommendations
The recommendation engine adapts its behavior based on the visitor’s consent status:- Consent granted: Kameleoon stores and transmits visitor data to provide personalized recommendations based on browsing history and behavior.
- Consent not granted: Kameleoon does not store visitor data in cookies. The recommendation algorithms only display products using filters or logic that do not require personal data, such as general popularity or static global filters.
Update your settings
Kameleoon Customer Success Managers (CSMs) manage the legal and consent configurations for your account. If you need to change your default consent behavior—for example, if your configuration does not require a consent banner—contact your CSM to update these settings.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.