Question
How do I tie up anonymous activity in Segment?
Product
Segment
Environment
Segment Console
Answer
Whenever you first collect PII in your customer journey, you should fire an analytics.identify() call. This ensures that all the prior anonymous activity (page views and track events tied to the anonymousId) gets linked to the now-identified user.
When you call identify using the Segment's Analytics.js library for example, Segment automatically persists both the existing anonymousId and the new userId. This way all prior anonymous page calls remain preserved and attributed to the new user. You don’t need to manually pass the anonymousId as a trait, Segment handles the stitching automatically
Additional Information
More relevant information on the identify method can be found below: