Skip to main content

Since: 1.41.0, @fullstory/react-native: 1.3.0

Update Page Properties

Call fsPage.update() to merge properties into the page's existing properties. This update is recursive such that nested maps will be updated by merging as well, instead of being replaced.

Calls to fsPage.update() will not be reflected for page views that have already ended, but any updates made to the properties will still be reflected the next time fsPage.start() is called.

Parameters
    properties object optional

    An object containing properties of the page that will be indexed by Fullstory.

Limits

See Create Pages Limits

Additional Information

update(properties: object): void;

Example Invocation

Add a coupon code to the page's properties

const pageRef = useRef(null); // Initialized in useEffect

const updatePage = () => {
pageRef.current.update({ couponCode: code })
}