getProfileAttributes
Deprecated
This method is no longer recommended. Audience Manager is no longer available in the latest product version.
The getProfileAttributes() method returns profile attributes. You can only access the attributes that heve been granted access.
Syntax
const attributes = await PiwikProSdk.getProfileAttributes();
console.log(attributes);
// {"device_type": "desktop", ...}
Returns
Returns a map of key-value pairs, where each pair represents an attribute name (key) and its value, instead of a string describing the method and its parameters.
Examples
To get profile attributes:
const attributes = await PiwikProSdk.getProfileAttributes();
console.log(attributes);
// {"device_type": "desktop", ...}
Notes
- You can only access attributes that have been granted access.
Related methods
- checkAudienceMembership() (deprecated)
- trackProfileAttribute() (deprecated)
Updated 6 days ago