Customer Audience Enrollment
Complete guide for managing customer tags and audience enrollment in Masivo - from tag assignment to automatic audience segmentation
Overview
Customer audience enrollment in Masivo is powered by a sophisticated tagging and segmentation system. By assigning tags to customers, you enable automatic enrollment into dynamic audiences based on conditions and customer behavior. This guide covers the complete workflow from tag management to audience segmentation.
Customer tags are key-value pairs stored in the customer’s tags
field. These
tags are used by audience conditions to automatically segment customers into
targeted groups for marketing campaigns.
Understanding Customer Tags and Audiences
Customer Tags System
Customer tags in Masivo are flexible key-value pairs that can store:
- String values:
"vip_status": "gold"
- Number values:
"lifetime_purchases": 15
- Boolean values:
"newsletter_subscriber": true
Audience Enrollment Process
When you assign tags to customers, Masivo automatically:
- Evaluates Audience Conditions: Checks all active audiences for matching conditions
- Enrolls Customers: Adds qualifying customers to the
customers_by_audience
table - Subscribes to FCM Topics: Automatically subscribes device tokens to audience-specific topics
- Enables Targeting: Makes customers available for audience-specific campaigns and journeys
1. Managing Customer Tags
Assign Tags to Customers
Use the PATCH /customers/{id}/tags
endpoint to assign or update customer tags:
Tag Assignment Behavior
When assigning tags, Masivo:
- Merges Tags: New tags are merged with existing ones using
{ ...existingTags, ...newTags }
- Overwrites Values: If a tag key already exists, the new value overwrites the old one
- Preserves Other Tags: Existing tags not included in the request remain unchanged
Remove Customer Tags
Use the DELETE /customers/{id}/tags
endpoint to remove specific tags:
2. Audience Segmentation with Tags
How Audience Conditions Work
Masivo audiences use customer tags for segmentation through condition matching. The system supports various condition types:
String Tag Conditions
Number Tag Conditions
Boolean Tag Conditions
Automatic Audience Enrollment
When you assign tags to customers, Masivo automatically:
- Processes Audience Conditions: Evaluates all active audiences against the customer’s updated tags
- Enrolls in Matching Audiences: Adds customer to
customers_by_audience
table for qualifying audiences - FCM Topic Subscription: Subscribes customer’s device tokens to audience-specific topics (
{account_id}_audience_{audience_id}
) - Real-time Updates: Processes enrollment in background queues for scalability
Tag-Based Segmentation Examples
E-commerce Segmentation
Subscription Business Segmentation
Conclusion
Customer audience enrollment in Masivo is a powerful system that automatically segments customers based on their tags. By strategically assigning and managing customer tags, you enable sophisticated audience targeting for personalized marketing campaigns and customer journeys.
The automatic enrollment system ensures that customers are always in the right audiences based on their current attributes and behaviors, enabling real-time personalization and targeted messaging through FCM topics and campaign targeting.
For more information about audience creation and management, see the Create Audiences Guide.