i just switched our mixpanel integration from segm...
# support
s
i just switched our mixpanel integration from segment to rudderstack, but I appear to be running into issues with group analytics. After the switch i’m no longer seeing group profiles be created. I’ve followed the docs. I’ve made sure the group key is set, but I can’t seem to figure out what’s wrong. I’ve also messaged mixpanel, but wondering if anyone else has seen this problem before and has some thoughts.
r
Hi Cobi, I hope you're well mate. Could you please share which source you're using? I believe you need to also pass a groupId within your payload itself. Would it be possible for you to share an example payload which is troublesome? I could try and replicate the issue on my side and potentially debug it that way.
s
source is node.js
r
Looks good, let's grab an example from you and I can tell you if I'm seeing the same behavior
s
Copy code
{
  "anonymousId": "8196602c-c2b3-45e3-af36-1608866655d6",
  "channel": "web",
  "context": {
    "app": {
      "build": "1.0.0",
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "1.21.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "1.21.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "https://app.devcycle.com/",
      "initial_referring_domain": "app.devcycle.com",
      "path": "/o/org_qldi3OaMLS0UJMVR/p/default/features",
      "referrer": "https://app.devcycle.com/",
      "referring_domain": "app.devcycle.com",
      "search": "",
      "tab_url": "https://app.devcycle.com/o/org_qldi3OaMLS0UJMVR/p/default/features",
      "title": "Feature Management | DevCycle",
      "url": "https://app.devcycle.com/o/org_qldi3OaMLS0UJMVR/p/default/features"
    },
    "screen": {
      "density": 1,
      "height": 1080,
      "innerHeight": 870,
      "innerWidth": 1888,
      "width": 1920
    },
    "sessionId": 1672948837565,
    "traits": {
      "a0_organization": "org_qldi3OaMLS0UJMVR",
      "email": "cobi@taplytics.com",
      "name": "Cobi Druxerman"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
  },
  "event": "Feature Created",
  "integrations": {
    "All": true
  },
  "messageId": "1672948849713500-dc6b07af-2f90-427e-8b3c-3a8459fe1fe1",
  "originalTimestamp": "2023-01-05T20:00:49.713Z",
  "properties": {
    "a0_organization": "org_qldi3OaMLS0UJMVR",
    "category": "feature-created",
    "event_name": "Feature Created",
    "event_source": "dashboard",
    "event_type": "Feature",
    "item_key": "testing",
    "item_name": "testing",
    "item_parent_key": "default",
    "item_parent_name": "Default",
    "item_parent_type": "Project",
    "item_type": "Feature",
    "organization_name": "cobis-demo-organization",
    "project_key": "default",
    "project_name": "Default"
  },
  "rudderId": "39c4446f-db0e-4ff4-93cf-922c3aee2c43",
  "sentAt": "2023-01-05T20:00:49.714Z",
  "type": "track",
  "userId": "google-oauth2|101096060468127100073"
}
need anything else?
oh i think the group call is never making it to mixpanel
when i look at the destination events
so on the source events I see a group call with every identify event but on the mixpanel destination live events feed i only identifies
r
The above event payload looks like a subsequent
track
event that takes place post the
group
event. The example payload I was looking for was the payload for the
group
event. Would you happen to have an example of one of those
group
events that you are calling within that NodeJS source?
s
here’s a group call payload:
Copy code
{
  "anonymousId": "8196602c-c2b3-45e3-af36-1608866655d6",
  "channel": "web",
  "context": {
    "app": {
      "build": "1.0.0",
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "1.21.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "1.21.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "https://app.devcycle.com/",
      "initial_referring_domain": "app.devcycle.com",
      "path": "/o/org_qldi3OaMLS0UJMVR/p/default",
      "referrer": "https://app.devcycle.com/",
      "referring_domain": "app.devcycle.com",
      "search": "",
      "tab_url": "https://app.devcycle.com/o/org_qldi3OaMLS0UJMVR/p/default",
      "title": "Quickstart | DevCycle",
      "url": "https://app.devcycle.com/o/org_qldi3OaMLS0UJMVR/p/default"
    },
    "screen": {
      "density": 1,
      "height": 1080,
      "innerHeight": 870,
      "innerWidth": 1888,
      "width": 1920
    },
    "sessionId": 1672953386463,
    "traits": {
      "a0_organization": "org_qldi3OaMLS0UJMVR",
      "email": "cobi@taplytics.com",
      "name": "Cobi Druxerman"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
  },
  "groupId": "org_qldi3OaMLS0UJMVR",
  "integrations": {
    "All": true
  },
  "messageId": "1672953401129000-3dea0a24-e6c3-4c9c-92bd-0a0ac002e42d",
  "originalTimestamp": "2023-01-05T21:16:41.129Z",
  "rudderId": "39c4446f-db0e-4ff4-93cf-922c3aee2c43",
  "sentAt": "2023-01-05T21:16:41.134Z",
  "traits": {
    "name": "cobis-demo-organization"
  },
  "type": "group",
  "userId": "google-oauth2|101096060468127100073"
}
r
Hi Cobi, my intention was to try and replicate the same within my own RudderStack instance and share with you the behavior but it seems you need a paid Mixpanel instance in order to avail of the "Group Analytics" 😒 Sorry about that. I'll pass the torch to the RudderStack team with this one. Can't help it but feel like it is a something very small and nitty gritty. Please do share if you end up cracking it.
s
thanks anyway @red-engineer-90710
t
@steep-caravan-35760 can you please move
"a0_organization": "org_qldi3OaMLS0UJMVR"
from
event.context.traits
to
event.traits
alongside your
"name": "cobis-demo-organization"
field
This will let the Group call flow to mixpanel
s
ok cool, we’ll give that a try
cc @alert-belgium-53400
@tall-lawyer-58398 let me know what further details you need
t
checking with our team on this, it does look like we set it inside an array. I will check if we did this on purpose or not.
In the meantime, could you leverage the contains filter?
s
yeah we could, but it’s overwriting that field and making the data messy, so we’re holding off on merging this change
hey @tall-lawyer-58398 good morning! any updates on this?
@tall-lawyer-58398 good morning, just following up on this thread, any updates?
t
We have identified this as a bug. Looking to fix it in the coming weeks. We need to make sure there are no backwards compatibility issues
s
ok great, i appreciate the update