inAudience inAudience
This function checks if an individual is part of a specified audience within the ۶Ƶ Experience Platform. It is particularly useful for targeting specific groups in marketing campaigns, ensuring personalized content delivery, and optimizing customer journeys based on audience membership.
Example usage
In ۶Ƶ Journey Optimizer, you might use inAudience
to personalize a journey step:
if (inAudience("premium customers")) {
// Send premium content email
} else {
// Send standard content email
}
This ensures that premium customers receive exclusive offers, enhancing engagement and satisfaction.
- exited: Entity is leaving the segment definition.
inAudience('audienceName') == true
: Indicates membership with entered status.inAudience('audienceName') == false
: Indicates membership with exited status.Category
۶Ƶ Experience Platform
Function syntax
inAudience(<parameter>)
Parameters
<string>
Signature and returned type
inAudience(<string>)
Returns a boolean.
Example
inAudience("men over 50")
Explanation:
The function returns true if the individual in the journey instance belongs to the ۶Ƶ Experience Platform audience called “men over 50”; it returns false otherwise.