getProfileAttributes
DeprecatedThis 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 have been granted access.
Syntax
const attributes = await PiwikProSdk.getProfileAttributes();
console.log(attributes);
// {"device_type": "desktop", ...}Returns
A map of key-value pairs. Each pair represents an attribute name as the key and its value.
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)
- trackProfileAttributes() (deprecated)
Updated 3 days ago