Skip to main content

Since: 1.38.0

Update Page Properties

Call FSPage#updateProperties 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#updateProperties 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 Map<String, ?> required

    A map containing properties of the page that will be indexed by Fullstory. These properties will be merged with any current properties.

Limits

See Create Pages Limits

Additional Information

public void updateProperties(Map<String, ?> properties);

Example Invocation

Add a coupon code to the page's properties

private FSPage page; // Initialized in onCreate

public void onApplyCoupon(String code) {
page.updateProperties(new HashMap<String, Object>() {
{
put("couponCode", code);
}
});
}