If you see something off with Mixpanel's docs (typo, broken link, outdated content/screenshot) you can contribute that fix yourself!
Mixpanel internal members can edit the docs through a web editor using the Mintlify app. If you do not see the app in your Okta instance, request access by logging a ticket with IT.
To contribute via GitHub you’ll need a GitHub account. It’s free and takes 1 minute to create. Not sure what to make your handle? We recommend yourfullname-mixpanel.
To make an edit:
- Find the page you want to edit in the repo.
- Click the pencil icon to make edits to the page’s markdown. You can swap between code and preview to see what your edits look like.
- When you’re ready, hit “Commit” and follow the instructions to commit the changes to your branch and create a pull request review. Add a description if you like, keeping in mind that this is publicly accessible.
- If you're making multiple related changes, don't create a pull request right away. Continue making changes in the branch until you're ready to post all of the changes together in one PR
- One of the docs maintainers will review that request and merge when approved (usually faster if it’s a small change).
- Once merged, changes will go live automatically, typically within 1-2 minutes.
Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command:
npm i -g mintlify
Run the following command at the root of your documentation (where docs.json is):
mintlify dev
- Mintlify dev isn't running - Run
mintlify installit'll re-install dependencies. - Page loads as a 404 - Make sure you are running in a folder with
docs.json
Upload images/GIFs to the images/ directory.
To reference an image, use a relative link to the image. For example, if you have an image images/example.png, you can reference it as follows:
<Frame>

</Frame>
Ensure that the image filename has no spaces and are separated by either a hyphen or an underscore.
Images are hard to keep up-to-date, so please use them judiciously.
Youtube videos are added through an iframe that embeds the video to the page. You can get the source of the video by going to the youtube video, selecting share then the embed option.
Ensure you add -nocookie to the url (eg: https://www.youtube-nocookie.com/embed/sRQCfmvh3vg) otherwise the video will not work when user blocks cookies. (youtube tracks user data by default)
Example:
<Frame>
<iframe
src="https://www.youtube-nocookie.com/embed/sRQCfmvh3vg"
frameBorder="0"
webkitallowfullscreen="true"
mozallowfullscreen="true"
allowFullScreen
></iframe>
</Frame>
Every pull request generates a staging link, which the Mintlify bot posts as a comment in the pull request. This lets you preview your changes without changing what's actually live.
You may also preview changes by testing locally
For simple content changes, the reviewer will merge the PR for expediency. For code changes, the original author will merge changes.