Integrate Kameleoon with any third-party analytics solution

portrait de l'auteur Julie Trenque

Written by Julie Trenque

Updated on 06/24/2021

2 min

Intermediate

Manage your integrations

Analytics

CDP/DMP

CMP

CMS

Developers

Others

Was this content useful?

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 “Administrate” 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 site(s) on which it will be available.

Then click on “Next”.

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

The “JavaScript code” insert will enable you to link Kameleoon to your analytics solution. Any code you add in this insert will be executed every time the page is loaded.

We 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.

Copy and paste it into the pop-in section. You can adapt the sample code to your needs.

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.

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.

  • In this article :