splitbee-js icon indicating copy to clipboard operation
splitbee-js copied to clipboard

Users Duplicated Across Subdomains

Open andreemic opened this issue 2 years ago • 1 comments

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 avatar Apr 06 '23 12:04 andreemic

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

Screenshot 2023-04-06 at 14 29 41

andreemic avatar Apr 06 '23 12:04 andreemic