DavidWells / DavidWells/analytics
Two problems with using Mixpanel
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 267
- PR merge metrics
- No merged PRs in 30d
Description
Hello. I have two problems related to work with Mixpanel.
The first one:
When I use function call at page opening - then event comes out incorrectly and has extremely inconvenient name among events on Mixpanel site itself.

const analytics = Analytics({
app: 'Test',
plugins: [
mixpanelPlugin({
token: 'test',
}),
googleAnalytics({
measurementIds: ['G-TEST'],
})
]
})
analytics.page({
url: pageUrl,
});
Second:
When I add information to a user, I see the name as a built-in parameter, but the email address is passed as custom and initially I don't see it in the table in the list of users. But I can see it inside properties of the user if I open full information. I don't have this problem with the name.

analytics.identify('testID', {
email: email,
name: name,
})
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing both reports with the provided Analytics configuration, the Mixpanel plugin, analytics.page, and analytics.identify calls. Compare the resulting Mixpanel event name and user-property presentation with the reported behavior; done means both page events and email properties appear as intended in Mixpanel.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- analytics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100