sendProfileAttributeWithName

❗️

Deprecated

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

The sendProfileAttributeWithName() method sets profile attributes for Audience Manager. The attributes can be sent to Audience Manager with a screen view or any other event.

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

Syntax

[[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] sendProfileAttributeWithName:@"plan type" value:@"premium"];

Notes

  • Each event always sends the following attributes: Site or app ID, Visitor ID and Device ID.
  • If isAnonymizationEnabled = YES and User ID and Email are set, each event will send them as well.
  • You can see all added attributes in Audience Manager > Profile.

Related methods