Create Pages
Call fsPage to create a new FSPage instance for a page of type pageName. This object is used to instrument the start and end of views of the page and to update the page's properties. You MUST call FSPage.start() after creating the page to signal the start of the view of the page.
Nested pages are not supported. There will only ever be one (or zero) page(s) active at a time, which will be the page that was most recently started (but not ended).
In Compose, create the page with remember so the same instance is used across recompositions, then call start() from a LaunchedEffect or DisposableEffect. If you have no need to call updateProperties() or end(), you may simply call fsPage("<name>", <properties>).start() when the view appears (see Start Page).
On platforms without a capture SDK, FSPage methods do nothing.
Parameters
- pageName String required
The name used for this page type by Fullstory.
- properties Map<String, Any?> optional
Optional initial properties for this page instance, indexed by Fullstory.
Conventions
Use constant values when choosing a pageName and put dynamic or differentiating info in the properties. For example, instead of having a "merchantX" page for each merchant in an e‑commerce app, use "Merchant" as the pageName and add "merchantName" to "merchantX" as a page property. Use properties for values you would want to search on. See Limits below.
Limits
- Capture up to 50 unique properties (exclusive of
pageName) on a single page. - Capture up to 500 unique properties across all pages.
- The
pageNamefield is limited to 7,500 unique values. This limit is shared across all page types, including both URL-defined pages and API-defined pages. Any newpageNamevalues sent past this limit will be ignored.