faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

setView should accept attributes

Open cedricziel opened this issue 1 year ago • 0 comments

Description

When working with Single Page Apps (SPA), an application is decomposed into views / routes.

The current faro api doesn't allow submitting attributes for views though.

Proposed solution

Allow setting view attributes:

faro.api.setView('cart', {orderId: 'an-id'});

cedricziel avatar Jan 25 '24 21:01 cedricziel