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 feature is in open beta and is in active development. Contact the Kameleoon support team for support with this integration.
Key benefits
- Seamless cohort sync: Import user segments from Amplitude into Kameleoon effortlessly.
- Personalized targeting: Deliver tailored experiences based on user behavior.
- Enhanced experimentation: Run precise A/B tests on specific audience groups.
- Real-time updates: Keep user segments up-to-date automatically.
Use cases
Optimize experiments with behavioral targeting
Sync Amplitude cohorts with Kameleoon to test variations on users based on their real-time behavior. For example, run an A/B test on users who have viewed a product page multiple times but haven’t added anything to their cart. Test different incentives (for example, a limited-time offer vs. social proof messaging) to determine which strategy drives the most conversions.Analyze results with behavioral segmentation
Break down Kameleoon campaigns using Amplitude cohorts for deeper insights. For example, if a test or personalization campaign shows a drop in conversions, analyze key Amplitude segments (for instance, high-value customers, churn-prone users) to identify patterns. Amplitude segments help you understand which experiences resonate best with different user groups and refine your strategy accordingly.Personalize experiences using Amplitude’s rich user insights
Leverage Amplitude’s deep user data, such as behavior, lifecycle stage, or purchase history—to create highly relevant experiences in Kameleoon. For example, identify frequent buyers, users who recently downgraded their subscription, or those who engage with specific content. Then, tailor messaging, promotions, or feature recommendations in Kameleoon to maximize engagement and conversions.Get started
Store Kameleoon Visitor Code as an Amplitude User Property
Add this code to your Amplitude SDK immediately after theamplitude.init() function:
kameleoon_visitorcode property in Amplitude.
Generate your Kameleoon API Key
Please note that you will need a Kameleoon Client-Secret, which you can get from your Kameleoon Customer Success Manager.
https://customers.kameleoon.com/kameleoon/amplitude/getapikey?id=CLIENT ID&secret=CLIENT SECRET
Activate the Kameleoon integration in Kameleoon
Locate the Kameleoon Cohorts integration in your Amplitude account under Data > Catalog > Destinations.Connect to Kameleoon
- Create a new Destination: Click Kameleoon Cohorts.
- Set up the integration:
- Name: Provide a name for the connection (for example, Kameleoon Cohorts).
- Kameleoon API Key: Enter the Kameleoon API Key you generated earlier.
- Kameleoon Sitecode: Input your project sitecode here.
- Kameleoon Visitor Code: Select the
kameleoon_visitorcodeuser property. If you can’t find it, please refer to the “Store Kameleoon Visitor Code as an Amplitude User Property” section for guidance.
- Save the integration: Click Save.
Activate Cohort Sync in Amplitude
Navigate to your Cohorts and begin creating the cohort sync. Select Kameleoon Cohorts, choose the API target for syncing, and set the sync frequency.Leverage Amplitude cohorts in your Kameleoon campaigns
Create custom data to target Amplitude cohorts in your experiments
To create a segment based on Amplitude cohorts, set up a custom data in Kameleoon > Configure > Custom data.Retrieve Amplitude cohorts for client-side experiments
- Create a New Custom data: Click New custom data.
- Set up the Custom data:
- Name: Amplitude Cohorts.
- Select your project.
- Choose the retrieval method: Custom JavaScript code.

- Type: List.
- Format: String.
- Scope: The scope may be set to Page, depending on the scope. When the scope is Page, data is re-evaluated on every page load, if the user is within a certain cohort identified by Amplitude.
Retrieve Amplitude cohorts for server-side experiments
- Create a New Custom data: Click New custom data.
- Set up the Custom data:
- Name: Amplitude Cohorts.
- Select your project.
- Choose the retrieval method: Kameleoon SDK.
- Type: List.
- Format: String.
- Scope: The scope may be set to Page, depending on the scope. When the scope is Page, data is re-evaluated on every page load, if the user is within a certain cohort identified by Amplitude.
getRemoteData() method. This method fetches data stored by Amplitude on our servers and makes it accessible in your backend code.
Fetch Amplitude cohort names in Kameleoon
In the last step of custom data creation, activate the Save the values for the targeting condition associated with the custom data point option. Insert this snippet into the dedicated field and replace the valueADD_YOUR_SITECODE with your project sitecode.