> ## Documentation Index
> Fetch the complete documentation index at: https://www.edgee.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Piano Analytics

> Master and share a complete data-driven view of your customer with Piano Analytics, **now at the edge**.

<img src="https://mintcdn.com/edgee/enlt_qUyIUJ64Dg-/images/banners/piano.png?fit=max&auto=format&n=enlt_qUyIUJ64Dg-&q=85&s=d2a09ad4a7af0404d88d84f79d5993bd" className="rounded-lg" noZoom width="1312" height="335" data-path="images/banners/piano.png" />

Find it on GitHub: [<Icon icon="github" iconType="solid" /> /edgee-ai/piano-analytics-component](https://github.com/edgee-ai/piano-analytics-component)

Piano Analytics, known for its precise analytics and data management platform, can be integrated directly through Edgee,
enabling you to harness its powerful analytics tools without the need for embedding any additional scripts on your site.
This edge-based integration significantly boosts site performance while adhering to the highest standards of user privacy.

## Event Mapping

Here's how Edgee events map to Piano Analytics events:

| Edgee event | Piano Event       |
| ----------- | ----------------- |
| Page        | `page.display`    |
| Track       | Name of the event |
| User        | -                 |

<Note>
  The User event is not mapped to any Piano event. However, when you make a `user` call,
  Edgee stores the user's data (user\_id, anonymous\_id, and properties) on the device.
  This enables proper attribution for subsequent page views and events.
</Note>

## Getting Started

**To configure Piano Analytics in your Edgee project:**

1. Open the Edgee console and navigate to your project's Components.
2. Select "Add a component" and choose `edgee/piano-analytics` from the list of available components.
3. Input your Piano Analytics credentials:
   * `Site ID`
   * `Collection Domain`
4. Click Save to complete the setup.

## Destination Name

For correctly routing events in your **Edgee Data Layer** or via SDK function calls, refer to the component as `edgee/piano-analytics`.

```json theme={"dark"}
{
  "components": {
    "edgee/piano-analytics": true
  }
}
```

For more details on Piano Analytics implementation, refer to the
[official Piano Analytics documentation](https://developers.atinternet-solutions.com/piano-analytics/data-collection/how-to-send-events/collection-api).
