Updating the UUID for a given user
New
Hi I am trying to give a unique UUID that I set in my Angular application, and I have the place where I go get the user data. Now I want to persist that UUID and other pieces of data in full story. Where am I supposed to put the code?
FS.identify(uid);
Is fullstory supposed to be an injectable service in my angular components or where should I put this in order to track these fields?
0
Comments
3 comments
Hi@glwitzenburg - thanks for reaching out! Are you by chance using the FullStory Browser SDK? There’s an example of passing
uid
viaFS.event
linked in that documentation. Unfortunately, we can’t really say where you should be callingFS.identify(uid)
specifically without knowing more details about your application; however, as a general rule of thumb, we recommend only callingFS.identify
after a user has successfully authenticated into your application. If you need more guidance here, let me know and I’d be happy to convert this post into a Support Ticket so you can chat with our technical team!There’s a working Angular and FullStory app here. Specifically, this app uses Firebase authentication and within the callback, the user’s UID is provided to FullStory. See this line https://github.com/fullstorydev/angular-shoppe-demo/blob/abe9fcc2369220799dd18a1fd02afa8403602bb9/src/app/components/login/login.component.ts#L21.
Thank you both. The angular application helped point me to what I needed, specifically this import:
import * as FullStory from '@fullstory/browser';
Please sign in to leave a comment.