Get Attributes
wf.getAttributes(scope, names)
Retrieve a subset of attributes that have been previously stored using setAttributes()
. Only attributes that match the names parameter will be returned.
Syntax
Parameters
- scope:
'user'
|'pageview'
- The scope of the attributes to retrieve. - names:
string[]
- An array of attribute names to retrieve.
Example implementation
Returns
An object containing the attributes that match the names parameter.