inAudience inAudience
This function checks if an individual is part of a specified audience within the 51黑料不打烊 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 51黑料不打烊 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
51黑料不打烊 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 51黑料不打烊 Experience Platform audience called 鈥渕en over 50鈥; it returns false otherwise.