---
title: "How to integrate Mixpanel with Document360"
slug: "mixpanel"
description: "Mixpanel is one of the most powerful analytical tools out in the market now. It is an event-centric platform and uses events for tracking, unlike automatically tracking data. "
tags: ["Integrations", "Mixpanel"]
updated: 2026-07-20T07:53:30Z
published: 2026-07-20T07:53:30Z
canonical: "docs.document360.com/mixpanel"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.document360.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Mixpanel
Mixpanel is an event-centric analytics tool that tracks user events rather than automatically capturing data. Integrating Mixpanel with your Document360 knowledge base lets you analyze how readers interact with your content, which articles drive engagement, where they drop off, and how effective your site is overall.
---
## Before you begin
- You need a Mixpanel account.
- You need your **Mixpanel Project token**, available in Mixpanel under **Settings** > **Project settings** > **Project token**.
---
## Configuration options
When adding the Mixpanel integration, you can choose between two configuration types:
- **[Basic configuration](/docs/mixpanel#basic-configuration):** standard setup that automatically tracks page views after you enter your Mixpanel Project token. Use this for a quick setup with minimal effort.
- **[Custom configuration](/docs/mixpanel#custom-configuration):** advanced setup that requires loading and initializing the Mixpanel library manually. Use this when you want to track specific events beyond page views, such as button clicks or form submissions.
---
## Set up Mixpanel
### Basic configuration
1. In the Document360 portal, navigate to **Connections** () > **Integrations** () in the left navigation bar.
2. Select **Mixpanel** from the list of integrations and click **Add**. The **Add new integration** dialog appears.
3. Select the **Basic configuration** option.
4. Enter a **Description** for this integration.
5. Enter your **Mixpanel Project token** in the **Mixpanel ID** field. For details on where to find your token, see the [Mixpanel installation guide](https://docs.mixpanel.com/docs/quickstart/install-mixpanel).
6. Optionally, expand **Code inclusion/exclusion conditions** to apply the code based on **IP address**, **Workspace**, or **Language**.
7. Click **Add**.
Your knowledge base will now send page view data to Mixpanel.
NOTE
If you want to track additional events such as button clicks or form submissions, use the Custom configuration option instead.

---
### Custom configuration
Use Custom configuration to set up an advanced Mixpanel integration. This option lets you add JavaScript code directly in the configuration panel and customize event tracking based on your needs.
1. In the Document360 portal, navigate to **Connections** () > **Integrations** () in the left navigation bar.
2. Select **Mixpanel** from the list of integrations and click **Add**. The **Add new integration** panel appears.
3. Select the **Custom configuration** option.
4. Enter a **Description** for this integration.
5. Paste your JavaScript snippet into the code field. See the examples below.
6. Optionally, expand **Code inclusion/exclusion conditions** to apply the code based on **IP address**, **Workspace**, or **Language**.
7. Click **Add**.
CAUTION
Custom configuration does not load Mixpanel automatically. You must first include the Mixpanel library and initialize it with your Mixpanel Project token.
**Example: Load and initialize Mixpanel**
Replace `YOUR_PROJECT_TOKEN` with your actual Mixpanel Project token from Mixpanel's Project settings.
```
```
**Example: Page view tracking**
```
```
NOTE
You can rename `"Page View"` to another event name such as `"Article Viewed"` or `"Category Opened"` depending on what you want to track.
**Example: Button click tracking**
Replace `yourButtonId` with the actual ID of the button you want to track, and update `"Your Button Label"` with a meaningful label. For example, if you are tracking a button labelled "Subscribe", use `"subscribeButton"` and `"Subscribe"`.
```
```
**PRO TIP**
The examples above cover the most common use cases. To track other event types such as form submissions, video plays, or scroll depth, refer to the [Mixpanel JavaScript SDK documentation](https://developer.mixpanel.com/docs/javascript) for a complete list of methods and advanced tracking patterns.
---
## Verify the configuration
If no data appears in Mixpanel after setup, work through the following checks:
**Confirm your token**
Make sure you entered the **Mixpanel Project token** and not the Project ID or API secret.
**Check the page source**
1. Open your knowledge base site in a browser.
2. Right-click anywhere on the page and select **View page source** (shortcut: `Ctrl + U` on Windows/Linux, `⌘+ Option+ U` on Mac).
3. Press `Ctrl + F` / `⌘ + F` and search for `mixpanel`. If you do not find it, the Mixpanel integration script has not been injected.
**Check the Network tab**
1. Open your knowledge base site in a browser.
2. Press **F12** (Windows/Linux) or `⌘ + Option + I` (Mac) to open Developer Tools.
3. Go to the **Network** tab.
4. In the filter box, type `api.mixpanel.com`.
5. Reload the page or perform an action such as viewing an article. If you see requests to `api.mixpanel.com`, events are being sent. If no requests appear, the Mixpanel library is not loading or events are being blocked.
**Rule out blockers**
Check for ad blockers, cookie consent banners, or restrictive Content Security Policies (CSP). These can prevent Mixpanel from loading or sending data.
**PRO TIP**
Always test in an incognito or private browser window. This ensures you are loading the latest published scripts and avoids issues caused by browser caching.
---
### Workaround using Custom HTML
If the Mixpanel integration script does not load correctly through the native integration, you can add it as a Custom HTML integration instead.
1. In the Document360 portal, navigate to **Connections** () > **Integrations** () in the left navigation bar.
2. Select **Custom HTML** from the list of integrations and click **Add**. The **Add new integration** panel appears.
3. Paste the Mixpanel library snippet (see "Load and initialize Mixpanel" above).
4. Add your custom event tracking code below the initialization snippet.
5. Click **Add** and test again in Mixpanel.
---
## Best practices
- **Use Basic configuration unless you need custom event tracking.** For most knowledge bases, entering the Project token under Basic configuration is enough to start tracking page views.
- **Always initialize the Mixpanel library before calling tracking functions.** In Custom configuration, paste the full library initialization snippet first, then add your event tracking code below it.
- **Test in an incognito window after saving.** Browser caching can cause stale scripts to run, which makes it look like changes haven't taken effect.
- **Use Code inclusion/exclusion conditions to exclude internal traffic.** Add your office IP address as an exclusion to prevent team visits from skewing your analytics data.
- **Rename events to match your naming convention.** Mixpanel event names are case-sensitive and appear as-is in your dashboard. Use consistent, descriptive names like "Article Viewed" rather than "Page View" to make your data easier to read.
---
## FAQ
**What is the difference between Basic and Custom configuration?**
Basic configuration automatically tracks page views after you enter your Mixpanel Project token. Custom configuration requires you to manually load the Mixpanel library and write JavaScript to track specific events. Use Basic for a quick setup, and Custom when you need to track events beyond page views.
**Where do I find my Mixpanel Project token?**
In Mixpanel, go to **Settings** > **Project settings** > **Project token**. Make sure you copy the Project token and not the Project ID or API secret, as these are different values.
**Why is no data appearing in Mixpanel after I set up the integration?**
Check that you entered the correct Project token, verify the Mixpanel script is injected by searching for "mixpanel" in the page source, and check the Network tab in Developer Tools for requests to `api.mixpanel.com`. Ad blockers, cookie consent banners, or Content Security Policies may also block the script from running. See the Verify the configuration section for step-by-step checks.
**Can I track events other than page views?**
Yes. Use the Custom configuration option and add JavaScript event tracking code for button clicks, form submissions, video plays, or any other interaction. See the code examples in this article, and refer to the [Mixpanel JavaScript SDK documentation](https://developer.mixpanel.com/docs/javascript) for advanced patterns.
**Can I limit which workspaces or languages Mixpanel tracks?**
Yes. When adding or editing the Mixpanel integration, expand the **Code inclusion/exclusion conditions** section and add conditions based on IP address, Workspace, or Language. See [Code inclusion and exclusion conditions](https://docs.document360.com/docs/advanced-insertion-rules-in-integration) for full details.