New custom analytics integration
To create a new custom analytics integration:- Log in to your Kameleoon app.
-
Click Admin > Integrations.

-
Click Custom integration in the top right of the page. The New custom integration page opens on the Integration details step.

- Enter a name in the Integration name field. Optionally, upload a JPG, PNG, or SVG file in Custom icon (recommended size: 256 × 256 px) and add a Description. Kameleoon shows the icon in integration lists and on detail pages, and uses a default icon when you upload none. Click Next.
-
On the Define your integration script step, choose your third-party tool from the Use a pre-built template dropdown list and click Import. The corresponding script automatically populates the JavaScript code insert.

- Optionally, edit the script in the insert.
- Click Create.
How the JavaScript code insert works
The JavaScript code insert runs every time Kameleoon makes a bucketing decision for a given campaign. You write the logic that sends additional properties to your analytics platform. The Variables panel next to the insert lists the available variables:experimentIDexperimentNamepersonalizationIDpersonalizationNamevariationIDvariationName
Manage a custom analytics integration
To manage a custom analytics integration, open it from Admin > Integrations. The integration page has three sets of controls:- Click Install in the header to install the integration on projects.
- Click the three dots menu at the top right of the header to find Edit and Delete. Edit opens the integration details, where you change its name, description, and code.
- On the Projects tab, click the three dots menu at the end of a project’s row to find Set as default, Disable, and Select multiple projects.
Install the integration on projects
To enable the integration on one or more projects:- Click Admin > Integrations, then open your custom integration.
- Click Install in the header. The Install [integration name] to your projects page opens.
- Select the projects where you want to enable the integration. Use the search field to find a project by name or site code.
- Click Install.
Set the integration as default for a project
Setting an integration as the default pre-selects it in every new A/B test, personalization campaign, and feature flag in the project.- Open your custom integration and click the Projects tab.
-
Click the three dots menu at the end of the project’s row.

- Click Set as default.
Disable the integration for a project
Disabling an integration for a project stops the campaigns in that project from sending data through it.- Open your custom integration and click the Projects tab.
- Click the three dots menu at the end of the project’s row.
-
Click Disable. The Disable integration popup opens.

- Review the active items, grouped by type, with a live count for each. The popup states that these items stop sending data through the integration.
- Under Confirm to continue, type the integration name in the field. The Disable integration button stays inactive until the text matches the name.
- Click Disable integration. To keep the integration enabled, click Cancel or close the popup instead.
Delete the integration
Deleting an integration stops all campaigns from sending data to your tool through it.- Open your custom integration from Admin > Integrations.
-
Click the three dots menu at the top right of the header.

- Click Delete. The Delete integration popup opens.
-
Review the active items, grouped by type, with a live count for each. The popup states that deleting the integration stops sending data from these campaigns to your tool whenever a Kameleoon campaign is exposed.

- Under Confirm to continue, type the custom integration name in the field. The Delete integration button stays inactive until the text matches the name.
- Click Delete integration. To keep the integration, click Cancel or close the popup instead.
Associate your custom analytics integration with a campaign
In the Graphic/Code editor
When finalizing your experiment, click Integrations to configure your custom analytics as a tracking tool. The summary pop-in mentions your analytics tool before going live. Kameleoon automatically transmits the data, and you can view your results in the analytics tool.On the personalization creation page
You can select your custom analytics among the reporting tools for a personalization.On the Results page
Once you define your custom analytics integration as a reporting tool for a campaign, you can select or clear it via the Results page. To do this:- Click the three dots menu in the top right of the screen.
- Select Experiment configuration (Open configuration for personalization). A side menu appears.

- Scroll to the Reporting tools section, then click Edit. The Finalization page appears.
- Click Integrations.
- Click Activate on the tool.
- To save this step, click Next.
On a feature flag
To add your custom analytics tool to a feature flag:- Click Edit on the feature flag you want to track.
- Click Integrations in the Reporting section. All the integrations you’ve enabled appear.
- Toggle your custom analytics tool on for Delivery rules, Feature experiments, or both.