The Amplitude Event Streaming integration automatically sends events to your Amplitude account whenever visitors are exposed to a Kameleoon experiment. This integration enables enriched analytics in Amplitude, providing insights on experiment exposure to help you better understand user behavior and engagement.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.

/import endpoint of the Amplitude HTTP API.
Key benefits
- Precise behavior insights: The integration sends specific events to third-party tools for visitors exposed to web experiments and feature flags on SDK-based projects, such as apps. This detailed tracking enables a clearer view of how different variations impact user actions. For example, you can observe which variation drives more clicks, conversions, or other desired outcomes, helping you determine the most effective approach.
- Real-time decision-making: The integration provides data in real time, enabling on-the-fly decision-making. Armed with up-to-date insights into ongoing experiments, you can swiftly adjust strategies if a variation isn’t performing as expected.
- Effortless setup: Enable third-party integrations directly from the Kameleoon app with no need for custom code or SDK changes.
Considerations
- Event delivery timing: Kameleoon servers dispatch events with a minimum 30-minute delay.
Prerequisites
To configure this integration, you need the following information:- Amplitude API key: The API key unique to one of your Amplitude projects (as documented here)
- Server residency: Specify whether your Amplitude account is configured for the standard hosting region or EU hosting.
- Amplitude plan: Select the type of customer plan you have purchased with Amplitude.
Set up
This integration can be activated for Web Experimentation and Feature Experimentation.For web experiments
Enable the integration from the Integrations page.

For feature experiments
Set up the integration in the feature flag environment in the integrations section. Enable it for the environments where you want it active.
- The Kameleoon visitor code (sent both as a custom property and the default value for the
device_idfield) - Exposure timestamp
- Kameleoon experiment ID
- Kameleoon variation ID
Event payload example
Kameleoon sends events to Amplitude in the following format:user_id will contain the visitor’s Kameleoon visitor code. If you have set up Kameleoon cross-device history reconciliation, the identifier placed in the cross-device reconciliation custom data will be taken instead of the visitor code.
Payload customization for user_id, device_id, and session_id
By default, Kameleoon sends payloads where users are identified by thedevice_id field, which contains Kameleoon’s visitor code. However, you can customize the content of these payloads by creating and populating custom data in Kameleoon. You can define any or all of the following custom data:
- Cross-device identification (
user_id):- If you create a custom data and enable the option use for cross device identification, its value—when present during a visit—will be sent in the Amplitude user_id field. This custom data is ideal for “logged-in” identifiers associated with your users.
- Device identifier (
device_id):- If you create a custom data called
amplitude_device_id, its value—when present—will replace the Kameleoon visitor code in the device_id field of the payload. This custom data is recommended for “anonymous” identifiers tied to user devices. Regardless of whether this custom data is set, the original Kameleoon visitor code is still included in your payloads under the custom propertyKAMELEOON_VISITOR_CODE.
- If you create a custom data called
- Session identifier (
session_id):- If you create a custom data called
amplitude_session_id, its value—when present—will be sent in the Amplitudesession_idfield. We recommend setting this value to match the Amplitude session ID.
- If you create a custom data called