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

# LogRocket

> Send Kameleoon experiment data to LogRocket using a custom analytics integration to analyze campaign performance in LogRocket session replay and analytics.

Our [LogRocket](https://logrocket.com) integration lets you send Kameleoon data and analyze the performance of any Kameleoon experiments in LogRocket report and analytics metrics.

## Setup

### Create a new custom analytics integration for LogRocket

First, you must create a new custom analytics integration for LogRocket. To do this:

1. Log in to your Kameleoon app.
2. Click **Admin** > **Integrations** > **New custom analytics**.
3. Name your custom integration and select the projects on which it will be active.
4. Click **Next**.

<Note>
  If you want to know more about custom analytics, please read [the dedicated documentation](./custom-analytics-integration).
</Note>

5. From the dropdown list, choose the LogRocket integration and click **Add new script**. The corresponding script will automatically populate the JavaScript code insert.
   * You can adapt the sample code to your needs. Don’t forget to add your own slug in the code.

<Warning>
  Any custom code added here will be exposed in the kameleoon.js file and available publicly. Please do not put private API keys or passwords in this section.
</Warning>

1. Click **Validate**.

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 LogRocket integration with a campaign

#### In the Graphic/Code editor

When finalizing your experiment:

* Click **Integrations** > **LogRocket**.

Your analytics tool will be mentioned in the summary pop-in before going live.

Kameleoon will automatically transmit the data, and you can view your results directly in the analytics tool.

#### On the personalization creation page

You can select your custom analytics as a reporting tool for a personalization the same way you would in an A/B test.

#### 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:

1. Click **Reporting Tools** > **Edit**.
2. Select or deselect the tool.
3. Click **Validate**.
