Data Governance
Maintain data quality, enforce standards, and control access to your data with Mixpanel’s comprehensive data governance features.Lexicon: Data Dictionary
Lexicon is a data dictionary that stores descriptions of events and their properties. Project owners and admins can add/manage descriptions for all events and properties and organize data for clarity and discoverability. To open Lexicon, select the Data Management icon on the right side of the top navigation menu and then select Lexicon.Lexicon Structure
Tracked Data:- Events
- Event Properties
- Profile Properties
- Cohorts
- Custom Events
- Lookup Tables
- Formulas
- Behaviors
Events
Events are actions a user performs in your application or website.| Field | Description |
|---|---|
| Event Name | The database name of the event |
| Display Name | The event name that displays in the Mixpanel interface |
| Description | Information that describes the event |
| 30-Day Volume | Total number of events fired in the last 30 days |
| 30-Day Queries | Total number of UI queries executed in the last 30 days |
| Last Queried | The user that last used this event in the Mixpanel UI |
| Owners | The user(s) that are points-of-contact for this event |
| Status | Whether this event is Pending, Visible, Hidden, Dropped, or Merged |
Event Properties
Event properties describe details about events, such as distinct_id or browser.| Field | Description |
|---|---|
| Name | The database name of the property |
| Display Name | The property name that displays in the Mixpanel interface |
| Description | Information that describes the property |
| Example Value | An example value of this property |
| Events With Property | Total number of events that contain this property |
| Queries | Total number of UI queries executed in the last 30 days |
| Status | Indicates whether the property is visible, hidden, dropped, merged, or marked as sensitive |
Profile Properties
Profile properties describe details about your users, such as username or email address. If you have Group Analytics enabled, you will see a dropdown on the Profile Properties tab that will let you select any Group Types that you may have configured.Managing Data in Lexicon
Renaming Properties
Renaming Properties
After you ingest raw data into a project, you cannot rename it. However, you can change the display names of events, event properties, and user profile properties to control how they appear in the UI.The system dynamically renders these display names on the front end and does not modify the underlying data in the project’s data store or affect how the data appears in exports.
Dropping Data
Dropping Data
In Lexicon, you can intercept and drop incoming events or properties. Mixpanel won’t store any new data for the event or property you select to drop.Sample use cases:Undropping Events:
- Sensitive data: If you accidentally send sensitive data, such as passwords or credit card information, you can drop the event or property
- Cost and Time Efficiency: Being able to drop events and properties that are no longer useful directly from Lexicon is easier than implementing changes to your code base
- Better Organization: Dropping unnecessary events and properties optimizes your code for a clean and streamlined project implementation
- Select an event to drop
- Click Drop
- Confirm in the warning dialog
- The status of the event indicates Dropped
It takes a few hours for Mixpanel to process the dropped event. When an event is dropped, all events of that type that have previously been ingested will still show in the interface.
- Select a dropped event (look for “Dropped” in the Status column)
- Click Undrop
- The “Status” column no longer contains “Dropped”
Hiding Data
Hiding Data
You must have an admin or owner project role to hide and unhide data from the Lexicon.
- A hidden entity will not be indexed in your event/properties menu in the query builder
- Inactive events and properties (not fired in 30 days) will also be hidden
- Hidden events will be excluded from your query results
- Hidden events won’t appear in “All Events” or as intermediate steps in Flows reports
- Select one or more visible events, event properties, or profile properties
- Select Hide
- Confirm hiding in the dialog
- The event or property status changes to “Hidden”
- Select one or more hidden events, event properties, or profile properties
- Select Unhide
- The event or property status changes to “Visible”
If you wish to use a hidden entity in your report, you may manually select the entity by searching in the events/properties menu and then clicking “Show Hidden Events/Properties”.
Merging Data
Merging Data
In Lexicon, only project owners can merge events and event properties. User profile properties cannot be merged.
- Select the events to merge
- Click Merge
- In the “MERGE SELECTED EVENTS INTO…” section, specify which event Mixpanel should consider as the new unique event
- Click Merge
- The merged event appears and the “Status” column indicates “Merged”
Autocapture events (displayed as “[Auto] Page View” and “[Auto] Element Click”) cannot be merged.
- Select the merged event to unmerge
- Click Unmerge
- The merged event appears as the original two distinct events
- Select the properties to merge
- Click Merge
- Specify which property Mixpanel should recognize as the newly merged property name
- Click Merge
Verify Data (Enterprise)
Verify Data (Enterprise)
Customers on an Enterprise plan can access the Verified Data feature.
- Navigate to Lexicon
- Go to any event, behavior, formula, or custom event
- In the top right corner, click the Verify button
- Now, whenever end users are creating reports or browsing data in Lexicon, they will see a Verified icon next to this data item
Export and Import Lexicon Data
Export Lexicon Data
Export Lexicon Data
Project owners, admins, analysts, and consumers can click Export in Lexicon to receive a CSV file via email that contains the events and properties, and/or user profile properties data from a project.In the Export panel, you can select:
- Events & Properties and/or
- User Profile Properties
CSV Import
CSV Import
Project owners and admins can export a CSV of their Lexicon changes, make changes, and import that CSV back into Lexicon.To import CSV files, they must be in the exported CSV format, otherwise the file will be rejected.Once you’ve made your modifications:
- Select your CSV file
- Review Events, Event Properties, and/or User Profile Properties
- Import into Lexicon
Third-Party Imports
Third-Party Imports
Segment Import:When importing from Segment Protocols, you’ll need your Segment Token and Workspace. Find your Segment Token at Settings > Access Management > Tokens.
- In Lexicon, select Import from Segment
- Enter your Token & Workspace
- Select the Plan you want to import from Segment
- Review the Events and Profile Properties
- Import your Segment Plan into Lexicon
- Mixpanel Project ID
- Mixpanel Service Account Username & Secret (Owner or Admin role required)
- Navigate to your Data Plan and select Download Plan Version
- In Lexicon, click Import > mParticle
- Select the downloaded JSON file
- Review and Import data
Data Standards (Enterprise)
Customers on an Enterprise plan can access the Data Standards feature.
Enabling Data Standards
To define data standards, navigate to the Data Standards tab in Lexicon and configure rules such as:| Rule | Description |
|---|---|
| Naming conventions | Events must follow a required syntax (e.g., snake_case, camelCase) |
| Descriptions | All events must include a description |
| Ownership | Events must have an assigned owner |
| Rich media uploads | Events should have relevant media assets uploaded |
Viewing Compliancy Status
For every event in your project, Mixpanel will automatically evaluate against your defined data standards. The compliancy status is displayed in Lexicon, allowing Data Governors to:- Identify compliant and non-compliant events at a glance
- Filter/sort events based on their compliancy status
- Take corrective actions by updating metadata directly within Lexicon
The feature will check the standard against the Display Name if set. If no Display Name is set, it will check against the tracked event name. Only Project Admins or Owners can define data standards.
Event Approval (Enterprise)
Customers on an Enterprise plan can access the Event Approval feature.
Enabling Event Approval
To enable Event Approval:- Navigate to Lexicon
- Scroll to Event Approval under the Data Governance section
- Click the Event Approval toggle
- Input email addresses or aliases to be notified when a new event is ingested
- Optionally set up a Slack channel for notifications
- Enable new property detection if desired
Notifications are sent once per day. If multiple events are implemented in a project within one day, the notification will batch all these events. Only Project Admins or Owners can enable this setting.
Lexicon Workflow
When an admin receives a notification that new events have been ingested:- Click the “View New Events” button in the notification
- This takes you to a Lexicon view of hidden events
- New events will have a “New” tag and be sorted to the top
- Take actions such as marking the event as visible, adding a description, or a tag
- It hasn’t been modified
- It is hidden
- It was created within the last 30 days
- It was created within the last 30 days
Data Views (Enterprise)
Users on an Enterprise plan can access the Data View and Data Classification features.
Use Cases
Teams or Functional Areas
Teams or Functional Areas
You have a Mixpanel project that contains all of your data. Engineering, Marketing, Support, and various product teams all use Mixpanel on a regular basis. Each team can have a Data View filtering for relevant data.
Separate Customer from Internal Data
Separate Customer from Internal Data
Create a Data View for customer data by excluding data tracked by your internal users/employees. Create another Data View for just your internal users. By doing this, you no longer have to remember to add cohorts or filters each time you create a Board, Report, or Cohort.
Regions or Geo-Based Teams
Regions or Geo-Based Teams
For a global organization with multiple offices, regional teams might need access to data from only their region. E.g., The marketing team in the Asia region would like to target only Asian customers and should not have access to US customers’ data.
Verified Data Only
Verified Data Only
Teams that want to closely manage events that are included in all their analysis can either include or exclude the specific events in the Data View definition.
Create Data View
To create a new Data View:- Navigate to Project Settings
- Click on + Create Data View in the top right
- Add a name and description (max 255 characters)
- Click Save
Manage Data View
Default Data View
Default Data View
All projects have a global Data View called “All Project Data.” This Data View has no data filters and gives users access to all the data in a project.The “All Project Data” Data View starts as the default Data View of a project for any new users added. You can change which Data View is default by checking the box next to the Workspace name and selecting Set Default.
Visibility and Editing Controls
Visibility and Editing Controls
The Overview tab displays details about the Data View including name, description, editing controls, visibility, creator name, date created, and URL.Editing Controls:
- Restricted: Prevent other Admins from editing the Data View settings and filters
- Unrestricted: Allow Admins to edit the Data View settings and filters
- Public: Allow project members to discover your Data View in the Data View Library and self join
- Private: Prevent project members from seeing your Data View in the Library and self joining
After creation, Editing Controls and Visibility can only be changed by the Data View creator or a Project Owner.
Manage Data View Filters
Manage Data View Filters
Filters determine what data is accessible within a Data View.You can apply multiple event, event property, and user profile property filters to a Data View.
Add Users or Teams
Add Users or Teams
Add Users:
- Click + Add User
- Select individual project members from the modal
- Remove users by selecting the box next to their name and clicking Remove
- Click on the Teams tab
- Add or remove teams from a Data View
- Any project member in the team will have access to the Data View
Data View Library
Click on the name of your project in the upper-right corner, then “Data View Library”. The Data View Library allows you to:- See the Data Views you have joined
- Create new Data Views
- Join other public Data Views
Private Data Views that you have not been invited to will not show up here.
Data Views Limits
Data Classification (Enterprise)
You must have an active Enterprise plan with Mixpanel to access this feature.
Mark Properties as Classified Data
- Navigate to event properties or user profile properties tabs in Lexicon
- Select a property or group of properties
- Click Mark Classified
- Confirm in the pop-up
Manage Classified Data Viewing Permissions
For Individual Users
For Individual Users
- Go to Project Settings
- Select the “Project Users” tab
- In the Current Users table, the Classified Data column indicates which users have permission
- Click the Can View check box in a user’s row to update their permission
For Teams
For Teams
- Navigate to Organization Settings
- Go to the Users & Teams tab
- Click on the team for which you wish to manage permissions
- Manage the team’s access to Classified Data for each project
User Experience with Classified Data
Users that cannot view properties marked as Classified Data can see which specific properties are marked as classified in Lexicon, but cannot use such properties as filters or breakdowns. In Boards: If a report contains any event or property marked as classified, users without the “Can View” option will see a warning. They can click on a Board card to access the full report and determine what properties are preventing them from viewing a report. In Analysis Reports: Classified properties won’t be visibly different when building a report, but if used by a user without the “Can View” option enabled, a warning will be displayed.Query Volumes and Filtering
Viewing Query Volumes
In Lexicon, you can see the total UI and API queries in the last 30 days for any data types and sort by them. This data lets you easily discover:- Parts of your implementation that are most valuable
- Parts that are not being used
- Which events and properties you should drop
Filtering Events and Properties
Lexicon provides several options to filter your events, custom events, event properties, and profile properties:- Visible or hidden events
- Dropped events
- Merged events
- Tags
- Your defined events
- Autotracked events
- Default Mixpanel events