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

# Mixpanel integration

> Send Crossword chat widget events, such as conversations, messages, handoffs, and card clicks, to the Mixpanel project already on your site.

Crossword can send what happens in your chat widget to the Mixpanel already running on your website. You then see Crossword's events next to your own, in the reports and funnels you already use.

There is nothing to paste and no key to enter. The widget hands each event to the Mixpanel on your page.

## Prerequisites

* Your site loads Mixpanel's standard JavaScript snippet, as the main `mixpanel` object, on the pages where the chat appears.
* You have permission to manage tracking settings in Crossword. Without it, the page is view-only.

Crossword can't reach Mixpanel when it is added only through a Shopify custom or app pixel, bundled into your site's code, or set up only as a named second instance. Nothing arrives, and no error is shown.

## Setup

**1. Open the integration**

In the [Crossword dashboard](https://app.crossword.ai), go to **Integrations > Analytics** and click **Mixpanel**.

**2. Enable event delivery**

Click **Turn on**. Events start going to your Mixpanel straight away.

**3. Select events**

Tick the events to send on each tab: **Chat**, **Widget**, **Cards and suggestions**, and **Browsing**. Most chat events start ticked. To see what each one sends, read [Analytics events](https://crossword.ai/docs/reference/analytics-events.md).

**4. Customize event names (optional)**

Type your own name in an event's name box. Read [Custom event names](#custom-event-names) first.

**5. Save your changes**

Click **Save** at the top.

## Verify the integration

1. Open your website, open the chat, and send a message.
2. In Mixpanel, go to **Events** and use the **Live** view.
3. Search for `Crossword:`. You see events such as **Crossword: Widget opened** and **Crossword: Visitor message sent**.

## Event volume

Every event counts toward your Mixpanel usage. With the default events, a typical conversation sends about 10 to 15 events.

## Custom event names

Each event arrives in Mixpanel as `Crossword: ` plus the event's name, for example **Crossword: Widget opened**. You can give any event your own name, to match the names your reports already use.

* Type the new name in the event's name box. Leave the box empty to keep the default.
* To go back to the default, click **Reset to default** in the name box.
* A new name applies from your next save. Events already in Mixpanel keep their old names, so reports and funnels built on the old name stop counting new events.
* The default name follows the event's name in Crossword. If you rename the event in Crossword, its default Mixpanel name changes too.

A Mixpanel name must follow these rules:

* Up to 255 characters.
* No line breaks or hidden characters.
* Not a name Mixpanel keeps for itself, such as names starting with `$` or `mp_`.
* Not a name another Crossword event already uses.
* Not something that looks like an email address or phone number.

## Data privacy

Crossword never sends message text, names, email addresses, or phone numbers. Nothing is sent for visitors who opted out or haven't given consent. For the full list, read [Analytics events](https://crossword.ai/docs/reference/analytics-events.md#data-privacy).

## Troubleshooting

**No events in Mixpanel**

* Check the project picker at the top left. It should show the project whose **Settings > Project settings > Project token** matches the token in your site's snippet.
* Use **Events > Live**. Reports can take a few minutes, and may default to a date range that hides new events.
* If you renamed events, search for your names, not `Crossword:`.
* If your Mixpanel project is in the EU or India data center, your snippet must send to that region's servers.
* Ad blockers often block Mixpanel. Test in a browser without one.

**Only some events appear**

* **Session started** and **Conversation started** fire only for a new chat. A returning visitor gets **Conversation resumed** instead. To test them, use a private or incognito window.
* Check which events are ticked on each tab, and that you clicked **Save**.
* A **Needs attention** badge means Mixpanel is on but no events are ticked.

## Disable the integration

Switch **Send events** off at the top of the page, then click **Turn off**. New events stop straight away. Events already in Mixpanel stay, and your picks and names are kept for when you turn it back on.

## Related

> [card] [Analytics events](https://crossword.ai/docs/reference/analytics-events.md)
>
> Every event Crossword can send, what it means, and the details it carries.

> [card] [Google Analytics](https://crossword.ai/docs/integrations/google-analytics.md)
>
> Send the same events to Google Analytics too.

> [card] [Cookie consent](https://crossword.ai/docs/identity/cookie-consent.md)
>
> How a shopper's cookie choice decides what gets sent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.