Fullstory Browser V2 SDK - identify call for NextJS react App.
Answered
I am having trouble with determining how to identify a user for a NextJS React app using the new V2 Browser SDK
According to the docs: https://developer.fullstory.com/browser/identification/identify-users/
Fullstory.identify() is now deprecated and not sure what to do.
0
Comments
1 comment
Hi Claire Tran
Thanks for reaching out about this.
For the v2 API, you can use
FS('setIdentity', { uid, properties });. To anonymize a user once they've been identified, you can useFS('setIdentity', { anonymous: true });.Keep in mind, if you're using the browser SDK and you've initialized the SDK in your app using the
FullStorynamespace (i.e.import { FullStory } from '@fullstory/browser';) then you'd instead use that namespace for these methods —FullStory('setIdentity', { uid, properties });.Please let us know if this helps, or if you have any additional questions!
Please sign in to leave a comment.