sendAudienceManagerAttribute

❗️

Deprecated

This method is no longer recommended. Audience Manager is no longer available in the latest product version.

Use sendAudienceManagerAttribute() to set a named profile attribute and send it to Audience Manager. The call counts as its own update to Audience Manager rather than being folded into another interaction you track (such as a screen view).

Attributes are all kind of information about the user. They help you build audiences.

Syntax

PiwikTracker.sharedInstance()?.sendAudienceManagerAttribute(name: "name", value: "value")
[[PiwikTracker sharedInstance] sendProfileAttributeWithName:@"name" value:@"value"];

Parameters

  • name string, required - The name of the profile attribute. Example: plan type.
  • value string, required - The value of the profile attribute. Example: premium.

Examples

To set the attribute plan type with the value premium and send it to Audience Manager:

PiwikTracker.sharedInstance()?.sendAudienceManagerAttribute(name: "plan type", value: "premium")
[[PiwikTracker sharedInstance] sendProfileAttributeWithName:@"plan type" value:@"premium"];

Notes

  • Audience Manager is no longer available in the latest product version. The information below describes the original behavior and is preserved only for legacy integrations that still target older Piwik PRO accounts.
  • Each update includes the site or app ID, the visitor ID, and the attribute name and value you pass. Device ID, user ID, and email are sent only when isAnonymizationEnabled is false and those values are set on the tracker.
  • When isAnonymizationEnabled is true, device ID, user ID, and email are not sent with this update.
  • You can see all added attributes in Audience Manager > Profile.

Related methods