Skip to content

How to restart web vitals on the fly? #164

Closed Answered by codecapitano
alioshr asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @alioshr

In that case you need to define a Faro instance per sub-app you want to track.
This applies either for the case where sub-apps need distinct settings (for example sending data to a different URL) or if they should independently track data like it is in your case.

In your case Faro is globally initialized so it captures data for the complete app not in the scope of each sub-app. Even if you reset settings.

To initialize multiple independent Faro instances you need to set the isolate property to true.

Example:

  1. You initialize a global Faro instance to capture everything which you want to capture for the global scope.
  2. Additionally you initialize a Faro instance per sub-app (with i…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by alioshr
Comment options

You must be logged in to vote
1 reply
@codecapitano
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants