Hey Rudderstack - I'm working on some <Identity Re...
# support
a
Hey Rudderstack - I'm working on some Identity Resolution where i'm seeing pre-authentication events tied to an
anonymnousId
and post authentication tied to the
userId
(in our case happens to be the users email). The docs imply to me that these two sets of events should be stitched together, however, they arent. Doc snippet:
Does RudderStack auto-merge any user identifiers?
Yes, RudderStack auto-merges the following user identifiers by default so you don’t need to call the`merge` API or leverage user transformations to merge them:
•
userId
and
previousId
for the
alias
calls
•
userId
and
anonymousId
for the
identify
,
track
,
group
, and
screen
calls.
For merging other user identifiers like device ID, phone number, email ID, etc. RudderStack provides a
merge
API. Alternatively, you can use the Transformations feature to merge these identifiers.
further details in thread 🧵
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
a
We are on the free rudderstack account if that is the source of this issue.
here are two screenshots of events in CustomerIo - first shows many anonymous events that I made prior to signing up with the email hannah+resolution@wearehelpful.com. The second screenshot are identified events for this user that happened during or after creating an account.
We have identify and track calls throughout signup and page views on ever screen.
Seeing the same problem in mixpanel, another direct endpoint from rudderstack.
m
Hi Hannah, so RudderStack works in the following way 1. User lands on the website and is given an anonymous id. 2. The anonymousId is sent with each event of the user. 3. Once the user logins in / signs up we expect you to make an identify call with the userId 4. For all events post the identify call, both the anonymous Id and user id is sent to the destination. So can you share a sample event that is being sent by RudderStack, both before and after the identify call is made. You can find the events in the live-events tab in the source.
👀 1
Both Customer.io and Mixpanel should be able to tie these events together.
a
page
pre auth:
Copy code
{
  "anonymousId": "74126865-b705-42dd-b0fe-ab096db9c77c",
  "category": "Welcome",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "",
      "tab_url": "https://app.staging.wearehelpful.com/",
      "title": "Helpful",
      "url": "https://app.staging.wearehelpful.com/"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 1727,
      "width": 1728
    },
    "sessionId": 1699442504090,
    "sessionStart": true,
    "traits": {},
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
  },
  "integrations": {
    "All": true
  },
  "messageId": "43e53308-3ec4-45e1-821c-8875b040085b",
  "name": "Welcome",
  "originalTimestamp": "2023-11-08T11:21:44.823Z",
  "properties": {
    "category": "Welcome",
    "environment": "staging",
    "initial_referrer": "$direct",
    "initial_referring_domain": "",
    "name": "Welcome",
    "path": "/",
    "referrer": "$direct",
    "referring_domain": "",
    "search": "",
    "tab_url": "https://app.staging.wearehelpful.com/",
    "title": "Helpful",
    "url": "https://app.staging.wearehelpful.com/",
    "version": "1.6"
  },
  "rudderId": "9ece9536-3586-4f28-9490-f8dd3b4faf5d",
  "sentAt": "2023-11-08T11:21:44.825Z",
  "type": "page",
  "userId": ""
}
track
pre auth
Copy code
{
  "anonymousId": "74126865-b705-42dd-b0fe-ab096db9c77c",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/auth/start",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "",
      "tab_url": "https://app.staging.wearehelpful.com/auth/start",
      "title": "Helpful",
      "url": "https://app.staging.wearehelpful.com/auth/start"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 704,
      "width": 1728
    },
    "sessionId": 1699442504090,
    "traits": {},
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
  },
  "event": "Select Payor",
  "integrations": {
    "All": true
  },
  "messageId": "2a936c17-e27e-4dc1-a84e-b53e18316336",
  "originalTimestamp": "2023-11-08T11:21:57.290Z",
  "properties": {
    "environment": "staging",
    "payor": "2du2enFYABkTnPDJ3euZ0K",
    "version": "1.6"
  },
  "rudderId": "9ece9536-3586-4f28-9490-f8dd3b4faf5d",
  "sentAt": "2023-11-08T11:21:57.291Z",
  "type": "track",
  "userId": ""
}
identity
at time of email input:
Copy code
{
  "anonymousId": "74126865-b705-42dd-b0fe-ab096db9c77c",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "environment": "staging",
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/auth",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "?payor=2du2enFYABkTnPDJ3euZ0K",
      "tab_url": "https://app.staging.wearehelpful.com/auth?payor=2du2enFYABkTnPDJ3euZ0K",
      "title": "Helpful",
      "url": "https://app.staging.wearehelpful.com/auth?payor=2du2enFYABkTnPDJ3euZ0K"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 704,
      "width": 1728
    },
    "sessionId": 1699442504090,
    "traits": {
      "locale": "en-US"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
    "version": "1.6"
  },
  "integrations": {
    "All": true
  },
  "messageId": "f62a1487-831c-4065-ab0d-7bdbe44a14c9",
  "originalTimestamp": "2023-11-08T11:22:14.587Z",
  "rudderId": "1704affe-19c6-4d95-9fb8-2442d45d7869",
  "sentAt": "2023-11-08T11:22:14.589Z",
  "type": "identify",
  "userId": "hannah+rudderdemo@wearehelpful.com"
}
track
post auth:
Copy code
{
  "anonymousId": "74126865-b705-42dd-b0fe-ab096db9c77c",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/auth",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "?payor=2du2enFYABkTnPDJ3euZ0K",
      "tab_url": "https://app.staging.wearehelpful.com/auth?payor=2du2enFYABkTnPDJ3euZ0K",
      "title": "Helpful",
      "url": "https://app.staging.wearehelpful.com/auth?payor=2du2enFYABkTnPDJ3euZ0K"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 704,
      "width": 1728
    },
    "sessionId": 1699442504090,
    "traits": {
      "locale": "en-US"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
  },
  "event": "Email Input: Go to SignUp",
  "integrations": {
    "All": true
  },
  "messageId": "24026fcb-a553-4dd8-93d1-62d382741863",
  "originalTimestamp": "2023-11-08T11:22:14.590Z",
  "properties": {
    "email": "hannah+rudderdemo@wearehelpful.com",
    "environment": "staging",
    "version": "1.6"
  },
  "rudderId": "1704affe-19c6-4d95-9fb8-2442d45d7869",
  "sentAt": "2023-11-08T11:22:14.591Z",
  "type": "track",
  "userId": "hannah+rudderdemo@wearehelpful.com"
}
page
post auth:
Copy code
{
  "anonymousId": "74126865-b705-42dd-b0fe-ab096db9c77c",
  "category": "Auth",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/auth/sign-up",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "?payor=2du2enFYABkTnPDJ3euZ0K&email=hannah+rudderdemo@wearehelpful.com",
      "tab_url": "https://app.staging.wearehelpful.com/auth/sign-up?payor=2du2enFYABkTnPDJ3euZ0K&email=hannah+rudderdemo@wearehelpful.com",
      "title": "Helpful",
      "url": "https://app.staging.wearehelpful.com/auth/sign-up?payor=2du2enFYABkTnPDJ3euZ0K&email=hannah+rudderdemo@wearehelpful.com"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 704,
      "width": 1728
    },
    "sessionId": 1699442504090,
    "traits": {
      "locale": "en-US"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
  },
  "integrations": {
    "All": true
  },
  "messageId": "810010bc-a0ae-447d-abad-c5ca600b1e28",
  "name": "Create Account",
  "originalTimestamp": "2023-11-08T11:22:14.614Z",
  "properties": {
    "category": "Auth",
    "environment": "staging",
    "initial_referrer": "$direct",
    "initial_referring_domain": "",
    "name": "Create Account",
    "path": "/auth/sign-up",
    "referrer": "$direct",
    "referring_domain": "",
    "search": "?payor=2du2enFYABkTnPDJ3euZ0K&email=hannah+rudderdemo@wearehelpful.com",
    "tab_url": "https://app.staging.wearehelpful.com/auth/sign-up?payor=2du2enFYABkTnPDJ3euZ0K&email=hannah+rudderdemo@wearehelpful.com",
    "title": "Helpful",
    "url": "https://app.staging.wearehelpful.com/auth/sign-up?payor=2du2enFYABkTnPDJ3euZ0K&email=hannah+rudderdemo@wearehelpful.com",
    "version": "1.6"
  },
  "rudderId": "1704affe-19c6-4d95-9fb8-2442d45d7869",
  "sentAt": "2023-11-08T11:22:14.615Z",
  "type": "page",
  "userId": "hannah+rudderdemo@wearehelpful.com"
}
in the
identity
and post auth rudder calls the
userId
is the email (
hannah+rudderdemo@wearehelpful.com
) and the
anonymousId
(
74126865-b705-42dd-b0fe-ab096db9c77c
) is there and the same as the
anonymousId
In the pre-auth'd calls
m
Oh ok. Thanks for sharing. Let me check on this and get back to you.
a
re:
Both Customer.io and Mixpanel should be able to tie these events together.
yes - they should and their docs confirm it. I have confirmed my customerio settings align with this (screenshot attached). Haven't dove into mixpanel yet.
Thank you, @shy-kite-21035 🙂
s
Copy code
rudderanalytics.identify("hannah+rudderdemo@wearahelpful.com", {
  name: "Hannah", // If you want to add
  email: "hannah+rudderdemo@wearahelpful.com",
  logins: 2 // If you want to add
})
✅ 1
m
You should then start seeing the email id in the traits object for any subsequent calls
a
Yes, I see the email in the traits for subsequent calls ✅ however, the events that happened pre identity still aren't associated with this user
m
How about the anonymous user, does he show all the events?
a
not that I can tell
anonymous user has no events after the identify call
m
Oh ok. Let me test this out. You are seeing the issue in both Mixpanel and Customer.io right?
✅ 1
a
yes, both services. You can see here in the screenshot from mixpanel that I have the pre-auth events (highlighted user
48a5c014-bdbe-4138-929a-87a01408bd9a
) tied to one user, and post auth tied to the post identity call user
hannah+rudderdev@wearehelpful.com
you can also see a difference in the properties sent for pre & post auth events
m
Can you also share the screenshot of the events from the destination live events?
a
you mean the rudderstack live events?
ill copy and paste a few like i did before with the new changes to add
email
to
traits
since the viewer isn't as nice as mixpanel
pre:
Copy code
{
  "anonymousId": "48a5c014-bdbe-4138-929a-87a01408bd9a",
  "category": "Welcome",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "",
      "tab_url": "http://localhost:3000/",
      "title": "Helpful",
      "url": "http://localhost:3000/"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 704,
      "width": 1728
    },
    "sessionId": 1699443643859,
    "sessionStart": true,
    "traits": {},
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
  },
  "integrations": {
    "All": true
  },
  "messageId": "479735c5-b841-43c6-bfb2-f942a03b1897",
  "name": "Welcome",
  "originalTimestamp": "2023-11-08T11:40:44.587Z",
  "properties": {
    "category": "Welcome",
    "environment": "local",
    "initial_referrer": "$direct",
    "initial_referring_domain": "",
    "name": "Welcome",
    "path": "/",
    "referrer": "$direct",
    "referring_domain": "",
    "search": "",
    "tab_url": "http://localhost:3000/",
    "title": "Helpful",
    "url": "http://localhost:3000/",
    "version": "1.6"
  },
  "rudderId": "b78da63d-32c5-4599-a7e5-a54599d5ac9a",
  "sentAt": "2023-11-08T11:40:44.589Z",
  "type": "page",
  "userId": ""
}
post:
Copy code
{
  "anonymousId": "48a5c014-bdbe-4138-929a-87a01408bd9a",
  "category": "Auth",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/auth/sign-up",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+rudderdev@wearehelpful.com",
      "tab_url": "http://localhost:3000/auth/sign-up?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+rudderdev@wearehelpful.com",
      "title": "Helpful",
      "url": "http://localhost:3000/auth/sign-up?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+rudderdev@wearehelpful.com"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 704,
      "width": 1728
    },
    "sessionId": 1699443643859,
    "traits": {
      "email": "hannah+rudderdev@wearehelpful.com",
      "locale": "en-US"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
  },
  "integrations": {
    "All": true
  },
  "messageId": "23eddb95-786c-4eae-91ca-a870395ecc3c",
  "name": "Create Account",
  "originalTimestamp": "2023-11-08T11:41:00.480Z",
  "properties": {
    "category": "Auth",
    "environment": "local",
    "initial_referrer": "$direct",
    "initial_referring_domain": "",
    "name": "Create Account",
    "path": "/auth/sign-up",
    "referrer": "$direct",
    "referring_domain": "",
    "search": "?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+rudderdev@wearehelpful.com",
    "tab_url": "http://localhost:3000/auth/sign-up?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+rudderdev@wearehelpful.com",
    "title": "Helpful",
    "url": "http://localhost:3000/auth/sign-up?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+rudderdev@wearehelpful.com",
    "version": "1.6"
  },
  "rudderId": "26cc9ac6-8c1b-424a-bb35-c2ea43511e44",
  "sentAt": "2023-11-08T11:41:00.482Z",
  "type": "page",
  "userId": "hannah+rudderdev@wearehelpful.com"
}
and this is the identify call
Copy code
{
  "anonymousId": "48a5c014-bdbe-4138-929a-87a01408bd9a",
  "channel": "web",
  "context": {
    "app": {
      "name": "RudderLabs JavaScript SDK",
      "namespace": "com.rudderlabs.javascript",
      "version": "2.28.0"
    },
    "campaign": {},
    "environment": "local",
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.28.0"
    },
    "locale": "en-US",
    "os": {
      "name": "",
      "version": ""
    },
    "page": {
      "initial_referrer": "$direct",
      "initial_referring_domain": "",
      "path": "/auth",
      "referrer": "$direct",
      "referring_domain": "",
      "search": "?payor=Cz8Qvobp3bg56AkakwlmN",
      "tab_url": "http://localhost:3000/auth?payor=Cz8Qvobp3bg56AkakwlmN",
      "title": "Helpful",
      "url": "http://localhost:3000/auth?payor=Cz8Qvobp3bg56AkakwlmN"
    },
    "screen": {
      "density": 2,
      "height": 1117,
      "innerHeight": 875,
      "innerWidth": 704,
      "width": 1728
    },
    "sessionId": 1699443643859,
    "traits": {
      "email": "hannah+rudderdev@wearehelpful.com",
      "locale": "en-US"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
    "version": "1.6"
  },
  "integrations": {
    "All": true
  },
  "messageId": "a2761028-a200-4ac6-8f8c-5b102e155e47",
  "originalTimestamp": "2023-11-08T11:41:00.455Z",
  "rudderId": "26cc9ac6-8c1b-424a-bb35-c2ea43511e44",
  "sentAt": "2023-11-08T11:41:00.457Z",
  "type": "identify",
  "userId": "hannah+rudderdev@wearehelpful.com"
}
m
Yes RudderStack live-events but not on the source side, but on the destination side.
👀 1
a
ok customer io destination live events: PRE:
Copy code
{
  "version": "1",
  "type": "REST",
  "method": "POST",
  "endpoint": "https://track.customer.io/api/v1/events",
  "headers": {
    "Authorization": "Basic ******MmI="
  },
  "params": {},
  "body": {
    "JSON": {
      "data": {
        "payor": "Cz8Qvobp3bg56AkakwlmN",
        "version": "1.6",
        "environment": "local"
      },
      "name": "Select Payor",
      "type": "event",
      "timestamp": 1699444729,
      "anonymous_id": "a008acd3-fe5b-4de2-b7e9-4db5af16a13c"
    },
    "JSON_ARRAY": {},
    "XML": {},
    "FORM": {}
  },
  "files": {},
  "userId": "a008acd3-fe5b-4de2-b7e9-4db5af16a13c",
  "statusCode": 200
}
POST:
Copy code
{
  "version": "1",
  "type": "REST",
  "method": "POST",
  "endpoint": "https://track.customer.io/api/v1/customers/hannah+customeriolive@wearehelpful.com/events",
  "headers": {
    "Authorization": "Basic ******MmI="
  },
  "params": {},
  "body": {
    "JSON": {
      "data": {
        "url": "http://localhost:3000/auth/sign-up?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+customeriolive@wearehelpful.com",
        "name": "Create Account",
        "path": "/auth/sign-up",
        "title": "Helpful",
        "search": "?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+customeriolive@wearehelpful.com",
        "tab_url": "http://localhost:3000/auth/sign-up?payor=Cz8Qvobp3bg56AkakwlmN&email=hannah+customeriolive@wearehelpful.com",
        "version": "1.6",
        "category": "Auth",
        "referrer": "$direct",
        "environment": "local",
        "initial_referrer": "$direct",
        "referring_domain": "",
        "initial_referring_domain": ""
      },
      "name": "Create Account",
      "type": "page",
      "timestamp": 1699444745
    },
    "JSON_ARRAY": {},
    "XML": {},
    "FORM": {}
  },
  "files": {},
  "userId": "hannah+customeriolive@wearehelpful.com",
  "statusCode": 200
}
IDENTIFY:
Copy code
{
  "version": "1",
  "type": "REST",
  "method": "PUT",
  "endpoint": "https://track.customer.io/api/v1/customers/hannah+customeriolive@wearehelpful.com",
  "headers": {
    "Authorization": "Basic ******MmI="
  },
  "params": {},
  "body": {
    "JSON": {
      "email": "hannah+customeriolive@wearehelpful.com",
      "locale": "en-US",
      "_timestamp": 1699444745,
      "anonymous_id": "a008acd3-fe5b-4de2-b7e9-4db5af16a13c"
    },
    "JSON_ARRAY": {},
    "XML": {},
    "FORM": {}
  },
  "files": {},
  "userId": "hannah+customeriolive@wearehelpful.com",
  "statusCode": 200
}
Let me know if I can send you anything else 🙂
m
Oh Ok. Also did you create this source/destination recently? I want to understand if this started after a change on our side (or Mixpanel's side) or is this an older issue.
Sure I ll keep you posted.
a
We set up all of this in the past 7 months I would say (we are a new company) and I'm not sure but I presume this has been going on the entire time
m
Oh ok
a
Look! On Customer-io i'm seeing this: Anonymous data merged (there must be a bit of a delay) so I think adding email to the traits may have helped. I'll see if this is the case for mixpanel
m
Nice :)
a
I'll look into the mixpanel docs to ensure I have proper settings for this reconciliation but it looks like customer io might be working now as expected.
m
Can you confirm that the events you sent before and after the identify call are correctly associated with one user_id or anonymous id.
a
In customer io they are ✅
m
Nice.
a
mixpanel docs indicate this should also happen automatically
Copy code
Any events prior to calling .identify are considered anonymous events. Mixpanel's SDKs will generate a $device_id to associate these events to the same anonymous user. By calling .identify(<user_id>) when a user signs up or logs in, you're telling Mixpanel that $device_id belongs to a known user with ID user_id. Under the hood, Mixpanel will stitch the event streams of those users together. This works even if a user has multiple anonymous sessions (eg: on desktop and mobile). As long as you always call .identify when the user logs in, all of that activity will be stitched together.
so perhaps I should reach out to them if i'm not seeing events merged by EOD
m
I don't think the will for Mixpanel since there is another customer with a similar issue for Mixpanel.
a
Oh really
m
Yes, in the meantime I will raise a ticket internally for the same.
a
Thank you so much!
m
Hi Hannah, the team pointed out that in the destination configuration, you have not provided the API secret. This is a mandatory field for merge. It is actually mentioned in the docs but just barely and even the text does not make it obvious that the field is mandatory. Checkout the first para of the identify subheading in the docs below. https://www.rudderstack.com/docs/destinations/streaming-destinations/mixpanel/#identify
👀 1
a
Will look into that and report back. Thanks!
m
Sure :)
a
Worked! Thank you! 🙂
m
Thanks 🙂