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

# Setting up Piwik PRO

> Send Kameleoon experiment track events to Piwik PRO using a custom analytics integration to capture and analyze campaign performance in Piwik PRO.

By integrating Kameleoon with [Piwik PRO](https://piwik.pro/), you can capture and analyze user interactions targeted by Kameleoon campaigns, providing valuable insights into the performance of personalized content. This documentation will walk you through the setup process, detailing how to send track events from Kameleoon to Piwik PRO.

## Setup

### Prerequisites

* **Kameleoon Account**
* **Piwik PRO Account**
* **Kameleoon and Piwik PRO tracking codes**

### Create a new custom analytics integration for Piwik PRO

First, you must enable Piwik PRO in Kameleoon. To do this:

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

<Frame>
  ![](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/integrations/as-a-destination/analytics/piwik-pro/setting-up-piwik-pro/0.png)
</Frame>

<Note>
  If you want to know more about custom analytics, please read [the dedicated documentation](../../as-a-source/receive-user-data-in-kameleoon-with-any-third-party-solution).
</Note>

1. From the dropdown list, choose the Piwik Pro 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 be available publicly. Please do not put private API keys or passwords in this section.
</Warning>

6. Click **Validate**.

<Frame>
  ![](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/integrations/as-a-destination/analytics/piwik-pro/setting-up-piwik-pro/1.png)
</Frame>

Your analytics solution is added to the list of integrations.

You can modify the installation code later if needed, deactivate the tool, or delete the integration.

### Associate your Piwik PRO integration with a campaign

#### In the Graphic/Code editor

When finalizing your experiment:

1. Click **Tacking and Goals**.
2. 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 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**.
