Question

Updating the UUID for a given user

  • 22 November 2022
  • 3 replies
  • 34 views

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?


3 replies

Userlevel 5
Badge

Hi@glwitzenburg - thanks for reaching out! Are you by chance using the FullStory Browser SDK? There’s an example of passing uid via FS.event linked in that documentation. Unfortunately, we can’t really say where you should be calling FS.identify(uid) specifically without knowing more details about your application; however, as a general rule of thumb, we recommend only calling FS.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! 

Userlevel 1

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';

Reply