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 NSDictionary<NSString *, id> * optional

    A Dictionary containing properties of the page that will be indexed by Fullstory.

Limits

See Create Pages Limits

Additional Information

(void)updateProperties:(NSDictionary<NSString *, id> *_Nullable)properties;

Example Invocation

Add a coupon code to the page's properties

id<FSPage> _page; // Initialized in viewDidLoad

+ (void)applyCoupon:(NSString *)code {
[_page updateProperties:@{ @"couponCode": code }];
}