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 Klaviyo 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 Klaviyo segments 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 Klaviyo cohorts for deeper insights. For example, if a test or personalization campaign shows a drop in conversions, analyze key Klaviyo segments (for instance, high-value customers, churn-prone users) to identify patterns. Klaviyo segments help you understand which experiences resonate best with different user groups and refine your strategy accordingly.Personalize experiences using Klaviyo’s rich user insights
Leverage Klaviyo’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 a Klaviyo Identifier
Use the Klaviyo JavaScript API to assign the Kameleoon visitor code:Activate the integration in Kameleoon

- Go to Kameleoon Admin > Integrations.
- Click Klaviyo Cohorts and select Install.
- Choose your project(s) and click Validate. You are redirected to Klaviyo to authorize data sharing with Kameleoon.
- Grant Klaviyo permission to share data with Kameleoon.

Leverage Klaviyo Cohorts in your Kameleoon campaigns
Create custom data to target Klaviyo segments in your experiments
To create a segment based on Klaviyo cohorts, set up a custom data in Kameleoon > Configure > Custom data.Retrieve Klaviyo segments for client-side experiments
- Click New custom data.
- Configure the custom data:
- Name: Klaviyo Cohorts.
- Select your project.
- Retrieval method: Custom JavaScript code.

- Insert this snippet into the dedicated field:
- Set the remaining fields:
- Type: List.
- Format: String.
- Scope: The scope may be set to Page, depending on your requirements. When the scope is Page, data is re-evaluated on every page load if the user is within a cohort identified by Klaviyo.
Retrieve Klaviyo segments for server-side experiments
- Click New custom data.
- Configure the custom data:
- Name: Enter the name for the custom data that will contain your Klaviyo segments (for example, Klaviyo cohorts).
- Select your project.
- Retrieval method: Kameleoon SDK.
- Type: List.
- Format: String.
- Scope: The scope may be set to Page, depending on your requirements. When the scope is Page, data is re-evaluated on every page load if the user is within a cohort identified by Klaviyo.
getRemoteData() method. This method fetches data stored by Klaviyo on Kameleoon’s servers and makes it accessible in your backend code.
Fetch Klaviyo segment 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
{ADD_YOUR_SITECODE}with your project sitecode: