audienceManagerSetProfileAttribute
Deprecated
This method is no longer recommended. Audience Manager is no longer available in the latest product version.
The audienceManagerSetProfileAttribute() method sets profile attributes in Audience Manager. The attributes can be sent to Audience Manager with a screen view or other event.
Attributes are all kinds of information about a user that help you build audiences for marketing and advertising purposes.
Syntax
TrackHelper.track()
.audienceManagerSetProfileAttribute("name", "value")
.add("name", "value")
.with(getTracker());
TrackHelper.track()
.audienceManagerSetProfileAttribute("name", "value")
.add("name", "value")
.with(tracker)
Parameters
name (string, required)
The name of the profile attribute. Example: plan type.
value (string, required)
The value of the profile attribute. Example: premium.
add() (chain method)
Other attributes that you want to send with the same event.
Examples
To set the attribute plan type
with the value premium
and send it with .with(getTracker())
to Audience Manager:
TrackHelper.track()
.audienceManagerSetProfileAttribute("plan type", "premium")
.add("", "")
.with(getTracker());
TrackHelper.track()
.audienceManagerSetProfileAttribute(("plan type"), "premium")
.add("", "")
.with(tracker)
Notes
- Each event always sends the following attributes: Site or app ID, Visitor ID and Device ID.
- If setAnonymizationState(false) is set and User ID and Email are set, each event will also send User ID and Email.
- You can see all added attributes in Audience Manager > Profile.
Related methods
- audienceManagerGetProfileAttributes() deprecated
- OnCheckAudienceMembership() deprecated
Updated 2 days ago