Mixpanel
Send AB Tasty Experiment to Mixpanel Dashboard
Mixpanel is a product analytics platform that helps teams understand how users interact with their digital products. It tracks events, user behaviour, and retention in real time. With powerful segmentation and funnel tools, it supports data-driven decisions. You can find their getting-started guide here and the official partnership page here.
Easily activate the AB Tasty + Mixpanel integration to enable powerful, automated analysis of your experiments.
Follow this guide to streamline your setup and unlock advanced reporting features—no manual configuration needed.
How to Set up the Integration
On AB Tasty

Ensure you have sufficient rights to create integrations
Access Integrations > Integration Hub.
Search for and select Mixpanel (Push)
Click Create (or create connector on the side panel)
Give a name to your connector and activate it
[Optional] Check this box to add the connector to your future campaigns automatically.
Click Save and create a connector.
If you have checked the box, the connector will be automatically added to the Advanced step of your future campaigns. However, it is not applied retroactively to previously created campaigns.
If you left the box unchecked (default behavior), your connector won't be added automatically. You can still decide to send campaign data to your connector by selecting it from the Advanced options step of your campaign. More information on how to link a campaign is can be found in the Advanced Options Step article.
You can also modify this behavior from the Integration hub, by editing your connector configuration (check or uncheck box).
Heads up ⚡ You must update the AB Tasty tag to make your changes live.
On Mixpanel
You can follow their documentation here. You'll get an abstract below
How AB Tasty Data Arrives
When the integration is active, AB Tasty sends a single event to Mixpanel named "Event"
for users exposed to a test. This event contains one property, "AB Tasty"
, which holds a concatenated string of the campaign and variation IDs. For example: [12345]My Homepage Test[67890]Variation B
.
Step 1: Create Campaign and Variation Custom Properties
Before configuring the Experiment Settings, you must first parse the campaign and variation names from the "AB Tasty"
property into their own dedicated custom properties.
Navigate to Lexicon in your Mixpanel project and create the two custom properties below.

This property uses a REGEX function to extract the campaign name.
A.Create a new Custom Property.
Name it.
AB Tasty Campaign Name
is recommended, but the name does not need to exactly match this format.Use the following formula:
How it works: This formula reads the
"AB Tasty"
property and extracts only the text that exists between the first and second ID brackets (e.g.,[12345]
and[67890]
).Use the following formula:
REGEX_EXTRACT(properties["AB Tasty"], "^\\[\\d+\\](.*?)(?=\\[\\d+\\])", 1)
Save the property.
How it works: This formula reads the
"AB Tasty"
property and extracts only the text that exists between the first and second ID brackets (e.g.,[12345]
and[67890]
).
B. Variation Custom Property

This property uses a nested SPLIT function to isolate the variation name.
Create another new Custom Property.
Name it.
AB Tasty Variant Name
is recommended, but the name does not need to exactly match this format.Use the following formula:
SPLIT(SPLIT(properties["AB Tasty"], "[", 3), "]", 1)
Save the property.
How it works: This formula first splits the full string by the
[
character to isolate the end of the string, and then splits that result by the]
character to capture only the variation name.
Step 2: Configure Project Experiment Settings
With your Custom Properties created, you can now tell Mixpanel how to recognize your AB Tasty experiments.
Navigate to your Project Settings.
Scroll to the Experiment Event Settings section.
Define the mapping for your AB Tasty experiments:
Experiment Event: Select the
"Event"
event.Experiment Name: Map this to your new custom property.
AB Tasty Campaign Name
.Variant Name: Map this to your new custom property.
AB Tasty Variation Name
.
Save your settings.
Last updated
Was this helpful?