Question

Mixpanel not displaying Company attribute correctly? Maybe segment bug?


Badge

I'm not sure if this is a bug with the segment integration or what, but our developer looked into it and seems to think it might be a mixpanel thing. Thought i'd ask here what we might be doing wrong.


When we see Company in mixpanel, it shows up super strangely. (like so)


We call segment API Identify()


Which tells to include a company node in the request. The company node contains name, id, industry, employee count, plan attributes.

(Ref https://segment.com/docs/spec/identify/)


This is an example of API call we make to segment identify()


Which matches what Segment tells us to do.

Segment pushes data to intercom and Intercom displays the company attributes properly.




2 replies

Userlevel 3
Badge

@braddunn it looks like the JSON object on Segment is showing Company is an array so it's showing as a list in Mixpanel. Based on their developer docs, you have to separate each property as its own value https://developer.mixpanel.com/docs/javascript

mixpanel.track("Signup", {
    "age": 28,
    "gender": "male",
    "source": "facebook"
});

Badge

@annecamacho looking at segment API documents, company field/trait is expected to be an array/object.

ref: https://segment.com/docs/spec/identify/ (about 2/3 down the page)


Is this an integration issue between segment and mixpanel?



Reply