Prompt
Why are my customer profiles duplicating in Segment?
Latest observation
There are a few common reasons customer profiles appear to “duplicate” in Segment, and it usually comes down to identity resolution or multiple sources sending the same person as different IDs.
Common causes
1) Different IDs for the same person
If the same customer is sent with different identifiers, Segment may treat them as separate profiles.
Examples:
anonymousIdchanges between sessions/devicesuserIdis missing in some events and present in others- a user is tracked by email in one place and internal customer ID in another
- multiple systems send different IDs for the same real person
2) identify is not called consistently
If you only call track events without properly identifying the user, Segment can create separate anonymous profiles that never merge cleanly.
Best practice:
- Call
identify(userId, traits)after login/signup - Use the same stable
userIdeverywhere - Keep
anonymousIdconsistent until the user is identified
3) Multiple devices or browsers
One person using:
- mobile app
- web browser
- another browser/device
can produce separate profiles if identity stitching isn’t set up correctly.
4) Source instrumentation is duplicated
You may have the same event being sent from:
- frontend and backend
- two SDKs on the same page/app
- a tag manager plus direct code
- both client-side and server-side tracking without deduplication
This can lead to what looks like duplicate profiles, especially if each source uses different IDs.
5) Traits or identifiers change over time
If a customer’s userId is generated differently across systems, or an email/CRM ID is used inconsistently, Segment may create multiple profiles.
6) Separate workspaces/sources/configurations
If different sources are not configured to share the same identity space as expected, users can appear duplicated across destinations or even within downstream systems.
How to debug it
Check these for a duplicated customer:
- Compare
userIdvalues across events - Compare
anonymousIdvalues - Look at the event timeline in Segment and see whether
identifyhappened before/aftertrack - Check whether the same action is being sent from multiple sources
- Verify whether backend and frontend are both sending events for the same action
- Look for mismatched identifiers across systems (email vs internal ID)
How to prevent duplicates
- Use a single canonical user ID across all systems
- Call
identifyas soon as the user is known - Avoid switching identifiers midstream
- Be consistent about sending the same
userIdfrom web, mobile, and server-side tracking - Deduplicate events if both client and server send them
- Make sure your implementation follows Segment’s identity resolution best practices
If you want, I can help you debug a specific duplicate profile by looking at:
- a sample
track/identifypayload, - your current ID strategy,
- or the path of a duplicated user in Segment’s debugger.
Brands