faro-web-sdk
faro-web-sdk copied to clipboard
setView should accept attributes
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'});