Kameleoon comes with many built-in integrations. However, if you happen to use a platform for which we don’t yet provide an official analytics bridge, it’s very easy to build your own custom analytics integration by using our Custom Analytics Bridge feature and use it with any campaign (experiment or personalization) if you want to analyse your results in the analytics platform of your choice.
New custom analytics integration
On your Kameleoon App, click on Admin in the left menu, then on Integrations.
To add a new custom analytics integration, click on the button at the top right.
A pop-in will open.
You will have to set up and activate the integration of this new analytics tool. Name your custom integration and select the project(s) on which it will be available.
Then click on Next.
You can add predefined custom analytics scripts directly from a dropdown menu. This simplifies the process of integrating custom scripts with Kameleoon, without requiring you to manually input code each time.
From the dropdown list, choose the desired third-party integration.
Then click on the Add new script button.
The corresponding script will automatically populate the JavaScript code insert. Any code in this insert will be executed every time the page is loaded.
You can still manually customize the scripts as needed in the JavaScript code insert.
We also provide code samples for 20+ analytics platforms such as Hotjar, Amplitude, Adobe Analytics, GA4, etc. Let’s say you want to use Fullstory to analyze the results of your Kameleoon experiments, you can use our Fullstory sample code.
Note: Any custom code added here will be exposed in the kameleoon.js file and so available publicly. Please do not put private API keys or passwords in this section.
On the left, we display a reminder about available Kameleoon variables. You will find here:
- information about the variables that you can use to set custom properties in your analytics platform based on pre-defined campaign metadata, such as the campaign name and variation name;
- and how to use them.
The JavaScript code insert will run every time a bucketing decision is made for a given Kameleoon campaign. You need to write the logic that sends to your analytics platform additional properties. The available variables are:
- experimentID
- experimentName
- variationID
- variationName
- personalizationID
- personalizationName
- variationID
- variationName
Then validate your custom integration. Your analytics solution is added to the list of your integrations.
You can modify the installation code later if needed, deactivate the tool or delete the integration.
Associate your custom analytics integration with a campaign
In the Graphic/Code editor
When finalizing your experiment, click the Tracking and Goals step to configure your custom analytics as a tracking tool.
Your analytics tool will be mentioned in the summary pop-in before going live.
Kameleoon will automatically transmit the data and you will be able to view your results directly in the analytics tool.
On the personalization creation page
In the same way as A/B testing, you can select your custom analytics among the reporting tools for a personalization.
On the results page
Once your custom analytics integration is defined as a reporting tool for a campaign, you can select (or unselect) it via the results page. To do this, click on Reporting tools in the right panel to open the corresponding menu.
The reporting tools associated with the campaign are displayed. Click Edit to edit this selection.
You can then select or unselect the tool. Then click on Validate and continue to finalize or update your campaign.