silly-kitchen-30880
01/09/2023, 12:36 PMquiet-wolf-72320
01/09/2023, 7:14 PMfierce-crayon-64520
01/10/2023, 3:48 AMbroad-carpet-90114
01/10/2023, 6:26 AMCan you share us some payloads that you are sending to rudderstackwhen calling the
track api we mainly send 3 properties/data these are
⢠data - contains specific data based on the event (i.e. the color of the button, duration of the video, etc.)
⢠logged_in - whether the user is authenticated during the event
⢠user - this incudes the plan, role, and number of group members where the user is interacting
when calling identify we pass the following:
⢠userId (for the first argument)
⢠name, email, avatar (for the second argument)
email and userId is always unique per user
And how are you generating anonymousId and userId for a customer??for the userId, we fetch it from our database when the user logs in, so this is 100% unique per user, we use this library to generate it, on the screenshot above, the one with
us_XXXXXX (in the distinct id) is how it looks like.
as for the anonymousId, we don't really set it and let rudderstack generate it.
is it possible that the same anonymous id is generated on multiple users?broad-carpet-90114
01/10/2023, 8:31 AMfierce-crayon-64520
01/10/2023, 9:32 AMbroad-carpet-90114
01/10/2023, 10:18 AMus_ prepend in the value). the rest are random numbers that looks like: ee2d199f-51d1-4622-9a84-18cac2886e45 I'm not sure where did this came from but I'm guessing that this is an anonymous id? š¤·broad-carpet-90114
01/10/2023, 10:19 AMfierce-crayon-64520
01/10/2023, 10:24 AMfierce-crayon-64520
01/10/2023, 10:25 AMbroad-carpet-90114
01/10/2023, 10:26 AMidentify method on a successful login/signup (or on page reload after fetching the current user API). š¤broad-carpet-90114
01/10/2023, 10:27 AMwindow.rudderanalytics.identify(
user.id,
{
name: user.display_name,
email: user.email,
avatar: user.avatar,
}
);fierce-crayon-64520
01/10/2023, 10:40 AMfierce-crayon-64520
01/10/2023, 10:45 AMbroad-carpet-90114
01/10/2023, 10:51 AMfierce-crayon-64520
01/10/2023, 10:56 AMor on page reload after fetching the current user APIIn the page load call if the userId is different with the userId by which the user was created then this scenario can happen. Let's say you have make the identify call with
anonymousId1 and userId1. Later in page load call you have updated the userId with userId2. As the previous anonymousId will persist in the cookie, the new identify call will happen with anonymousId1 and userId2. And in this way both of the userId will get merged.broad-carpet-90114
01/10/2023, 10:59 AMfierce-crayon-64520
01/10/2023, 11:00 AMbroad-carpet-90114
01/10/2023, 11:03 AMfierce-crayon-64520
01/10/2023, 11:07 AMfierce-crayon-64520
01/10/2023, 11:08 AMfierce-crayon-64520
01/10/2023, 11:08 AMbroad-carpet-90114
01/10/2023, 11:13 AM2Avos6c5MSH8WCsTna5sck2zcJl
if you have access, this is one of the distinct id of the user profile with multiple accounts: us_01G9DXBGQ6HFXKV9XPDEDVEK2W
Can you confirm if the userId is unique for a user always?yes it is always unique as it we will have a conflict in the database if it is not.
fierce-crayon-64520
01/10/2023, 11:14 AMfierce-crayon-64520
01/10/2023, 5:11 PMbroad-carpet-90114
01/12/2023, 6:18 AM