segmentio / segmentio/analytics.js-integrations

[mixpanel] Company Attributes

Open
#191 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
125
Forks
136
Avg merge
2h 45m
Merged PRs (30d)
1

Description

Migrated from #30 by @jkindness

Since mixpanel does not accept object properties, wouldn't it make sense to check if "company" is being passed in as an object and if it is, flatten it. In other words, since segment allows you to specify a company object in the identify call, this code could simply take the object and translate it to "company_name", "company_plan", etc.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Mixpanel integration's identify handling and how it currently processes the company attribute. Check the Segment company-object convention and Mixpanel's accepted attribute format before deciding the supported flattening behavior. Done means company object properties are translated into the requested company_* attributes without breaking existing identify calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.