acceptable-art-16049
11/07/2023, 6:13 PManonymnousId 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:
•anduserIdfor thepreviousIdcallsalias
•anduserIdfor theanonymousId,identify,track, andgroupcalls.screen
For merging other user identifiers like device ID, phone number, email ID, etc. RudderStack provides afurther details in thread 🧵API. Alternatively, you can use the Transformations feature to merge these identifiers.merge
millions-activity-52391
11/07/2023, 6:13 PMacceptable-art-16049
11/07/2023, 6:14 PMacceptable-art-16049
11/07/2023, 6:15 PMacceptable-art-16049
11/07/2023, 6:17 PMacceptable-art-16049
11/07/2023, 6:23 PMmillions-activity-52391
11/08/2023, 11:11 AMmillions-activity-52391
11/08/2023, 11:14 AMacceptable-art-16049
11/08/2023, 11:23 AMpage pre auth:
{
"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
{
"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:
{
"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:
{
"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:
{
"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"
}acceptable-art-16049
11/08/2023, 11:24 AMidentity 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 callsmillions-activity-52391
11/08/2023, 11:28 AMacceptable-art-16049
11/08/2023, 11:28 AMBoth 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.
acceptable-art-16049
11/08/2023, 11:28 AMshy-kite-21035
11/08/2023, 11:37 AMrudderanalytics.identify("hannah+rudderdemo@wearahelpful.com", {
name: "Hannah", // If you want to add
email: "hannah+rudderdemo@wearahelpful.com",
logins: 2 // If you want to add
})millions-activity-52391
11/08/2023, 11:39 AMacceptable-art-16049
11/08/2023, 11:42 AMmillions-activity-52391
11/08/2023, 11:45 AMacceptable-art-16049
11/08/2023, 11:47 AMacceptable-art-16049
11/08/2023, 11:49 AMmillions-activity-52391
11/08/2023, 11:51 AMacceptable-art-16049
11/08/2023, 11:52 AM48a5c014-bdbe-4138-929a-87a01408bd9a) tied to one user, and post auth tied to the post identity call user hannah+rudderdev@wearehelpful.comacceptable-art-16049
11/08/2023, 11:53 AMmillions-activity-52391
11/08/2023, 11:54 AMacceptable-art-16049
11/08/2023, 11:55 AMacceptable-art-16049
11/08/2023, 11:55 AMemail to traits since the viewer isn't as nice as mixpanelacceptable-art-16049
11/08/2023, 11:56 AM{
"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:
{
"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"
}acceptable-art-16049
11/08/2023, 11:57 AM{
"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"
}millions-activity-52391
11/08/2023, 11:57 AMacceptable-art-16049
11/08/2023, 12:00 PM{
"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:
{
"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:
{
"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
}acceptable-art-16049
11/08/2023, 12:02 PMmillions-activity-52391
11/08/2023, 12:03 PMmillions-activity-52391
11/08/2023, 12:03 PMacceptable-art-16049
11/08/2023, 12:03 PMmillions-activity-52391
11/08/2023, 12:04 PMacceptable-art-16049
11/08/2023, 12:06 PMmillions-activity-52391
11/08/2023, 12:07 PMacceptable-art-16049
11/08/2023, 12:08 PMmillions-activity-52391
11/08/2023, 12:08 PMacceptable-art-16049
11/08/2023, 12:09 PMmillions-activity-52391
11/08/2023, 12:09 PMacceptable-art-16049
11/08/2023, 12:10 PMAny 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 EODmillions-activity-52391
11/08/2023, 12:10 PMacceptable-art-16049
11/08/2023, 12:10 PMmillions-activity-52391
11/08/2023, 12:11 PMacceptable-art-16049
11/08/2023, 12:11 PMmillions-activity-52391
11/08/2023, 12:11 PMmillions-activity-52391
11/10/2023, 9:04 AMacceptable-art-16049
11/10/2023, 10:26 AMmillions-activity-52391
11/10/2023, 12:31 PMacceptable-art-16049
11/10/2023, 4:58 PMmillions-activity-52391
11/12/2023, 10:38 AM