flaky-ability-44647
01/13/2023, 1:56 PMsilly-kitchen-30880
01/13/2023, 1:56 PMflaky-ability-44647
01/13/2023, 2:03 PMalias as a workaround to join them together, but it seems not correct to create a user with anonymous ID as distinct ID in the first place.flaky-ability-44647
01/13/2023, 2:25 PMhundreds-lifeguard-65770
01/13/2023, 4:04 PMflaky-ability-44647
01/13/2023, 5:09 PM“same anonymous ID is submitted with 2 different distinct IDs” why would this happen?because Rudderstack first submits our anonymous ID as distinct ID, and then our distinct ID as distinct ID, for the same user
hundreds-lifeguard-65770
01/13/2023, 5:13 PMflaky-ability-44647
01/13/2023, 5:13 PMflaky-ability-44647
01/13/2023, 5:22 PManonymousId,
• in JS it tracks `anonymousId`and an empty "userId": "" for some reasonflaky-ability-44647
01/13/2023, 5:26 PM"$anon_distinct_id": "7555cf5c-42f4-440d-a126-ff4251c70f78"
},
"distinct_id": "7555cf5c-42f4-440d-a126-ff4251c70f78"
},
"JSON_ARRAY": {}
},
"type": "REST",
"files": {},
"method": "POST",
"params": {},
"userId": "",hundreds-lifeguard-65770
01/13/2023, 5:28 PMhundreds-lifeguard-65770
01/13/2023, 5:28 PMhundreds-lifeguard-65770
01/13/2023, 5:29 PMhundreds-lifeguard-65770
01/13/2023, 5:29 PMhundreds-lifeguard-65770
01/13/2023, 5:31 PMflaky-ability-44647
01/13/2023, 5:31 PMflaky-ability-44647
01/13/2023, 5:32 PMhundreds-lifeguard-65770
01/13/2023, 5:55 PMhundreds-lifeguard-65770
01/13/2023, 5:56 PMquiet-wolf-72320
01/16/2023, 5:20 PMfierce-crayon-64520
01/17/2023, 4:41 AM{
"anonymousId": "anon-id-new17957",
"context": {
"traits": {
"trait1": "new-val",
"name": "test User 1 updated"
},
"ip": "14.5.67.21",
"library": {
"name": "http"
}
}
}
2.
{
"userId": "user17957",
"anonymousId": "anon-id-new17957",
"context": {
"traits": {
"trait1": "new-val",
"name": "test User 1"
},
"ip": "14.5.67.21",
"library": {
"name": "http"
}
}
}
And these results in creating one user only with two ids. Let me know if am I missing anything to replicate this issue.flaky-ability-44647
01/17/2023, 8:17 AMflaky-ability-44647
01/17/2023, 10:34 AMIN to Rudderstack:
{
"anonymousId": "58bad4b5-7033-412f-bb4d-404bcceef7ec",
"context": {
"library": {
"name": "rudder-sdk-ruby-sync",
"version": "1.0.7"
},
"page": {
"path": "/",
"referrer": "https://www.ofri.it/jobs",
"url": "https://www.ofri.it/"
},
"traits": {},
"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": "Handwerker gesucht? Kostenlos Offerten einholen",
"integrations": {
"All": true
},
"messageId": "947823b8-0a9b-42cb-96fc-ea838d2d97d5",
"name": "Handwerker gesucht? Kostenlos Offerten einholen",
"properties": {
"name": "Handwerker gesucht? Kostenlos Offerten einholen"
},
"rudderId": "14654a64-804f-47b5-a6bd-37a3b0b7011f",
"sentAt": "2023-01-17T10:18:54.586Z",
"timestamp": "2023-01-17T10:18:54.586Z",
"type": "page"
}
OUT to Posthog:
{
"body": {
"XML": {},
"FORM": {},
"JSON": {
"name": "Handwerker gesucht? Kostenlos Offerten einholen",
"type": "page",
"event": "$pageview",
"api_key": "xxx",
"messageId": "947823b8-0a9b-42cb-96fc-ea838d2d97d5",
"timestamp": "2023-01-17T10:18:55.388Z",
"properties": {
"$ip": "80.240.16.190",
"$lib": "rudder-sdk-ruby-sync",
"$set": {},
"name": "Handwerker gesucht? Kostenlos Offerten einholen",
"$host": "www.ofri.it",
"$time": "2023-01-17T10:18:55.388Z",
"$pathname": "/",
"$timestamp": "2023-01-17T10:18:55.388Z",
"$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",
"distinct_id": "58bad4b5-7033-412f-bb4d-404bcceef7ec",
"$current_url": "https://www.ofri.it/",
"$lib_version": "1.0.7",
"$anon_distinct_id": "58bad4b5-7033-412f-bb4d-404bcceef7ec"
},
"distinct_id": "58bad4b5-7033-412f-bb4d-404bcceef7ec"
},
"JSON_ARRAY": {}
},
"type": "REST",
"files": {},
"method": "POST",
"params": {},
"userId": "",
"headers": {
"Content-Type": "application/json"
},
"version": "1",
"endpoint": "https://eu.posthog.com/batch"
}flaky-ability-44647
01/17/2023, 10:36 AMdistinct_id to Posthog, even though we did not track one. I think this is not correct.fierce-crayon-64520
01/17/2023, 11:00 AMhundreds-lifeguard-65770
01/17/2023, 11:11 AMflaky-ability-44647
01/17/2023, 11:12 AMAre you asking not to send distinct_id for anonymous users?yes, exactly
flaky-ability-44647
01/17/2023, 11:13 AMfierce-crayon-64520
01/17/2023, 11:15 AMflaky-ability-44647
01/17/2023, 11:32 AM