splitbee / splitbee-js

Splitbee SDKs for Frontend & Node.js written in TypeScript
https://splitbee.io/docs
67 stars 4 forks source link

Users Duplicated Across Subdomains #86

Open andreemic opened 1 year ago

andreemic commented 1 year ago

Hey, I'm using Splitbee to track users across website.com (landing page) and app.website.com (webapp).

Here's the flow of one user in which a user ends up being tracked up to 4 times.

  1. User comes to website.com (tracked as a new user from real source)
  2. User navigates from website.com to app.website.com through a "login" button (tracked as a new user from website.com source)
  3. User signs up, sign up event is tracked (tracked as a new user!)
  4. splitbee.user.set is called and user goes on to use app.website.com (tracked as a different identified user with email, user id, etc.)

So in one flow a single user gets tracked 4 times! I want the user to be tracked once and once they log in, turn that anonymous user into the identified one.

My setup:

andreemic commented 1 year ago

Live example:

  1. Screenshot 2023-04-06 at 14 29 24
  2. Screenshot 2023-04-06 at 14 29 28
  3. Screenshot 2023-04-06 at 14 29 33
  4. Screenshot 2023-04-06 at 14 29 41