Sync Rules
Sync rules automatically add and remove tags when events occur. They’re the glue between events and tags, enabling powerful automation without manual intervention.How Sync Rules Work
When an event is triggered for a subscriber:Default Sync Rules
Sequenzy includes built-in sync rules for common SaaS events:| Event | Tags Added | Tags Removed |
|---|---|---|
saas.purchase | customer | lead, past-due, cancelled, churned |
saas.churn | churned | customer, cancelled, past-due |
saas.cancelled | cancelled | customer |
saas.payment_failed | past-due | — |
saas.refund | refunded | — |
saas.trial_started | trial | lead |
saas.trial_ended | — | trial |
saas.upgrade | — | — |
saas.downgrade | — | — |
Default rules are applied automatically. You can customize them per company in
Settings.
Sync Rule Anatomy
Each sync rule defines:| Field | Description |
|---|---|
event | The event name that triggers this rule |
addTags | Tags to add when the event fires |
removeTags | Tags to remove when the event fires |
Execution Order
When an event triggers:- Event recorded - Stored in analytics
- Remove tags - Listed tags are removed first
- Add tags - Listed tags are added
- Automations checked - Sequences triggered by new tags
Use Cases
Customer Lifecycle
Track where subscribers are in their journey:Payment Status
Track payment health:Subscription Tiers
When integrated with payment providers:Custom Sync Rules
Create custom rules in Settings → Sync Rules:Example: Lead Scoring
Example: Engagement Tracking
Example: Onboarding Progress
Sync Rules + Sequences
Sync rules work seamlessly with sequences:- Keep event handling simple (just fire events)
- Centralize tag logic (sync rules)
- Build flexible sequences (tag-based triggers)
Payment Provider Integration
When you connect Stripe or other payment providers:Automatic Event Firing
The integration automatically fires events:| Stripe Event | Sequenzy Event |
|---|---|
customer.subscription.created | saas.purchase |
customer.subscription.deleted | saas.cancelled |
invoice.payment_failed | saas.payment_failed |
customer.subscription.updated (downgrade) | saas.downgrade |
customer.subscription.updated (upgrade) | saas.upgrade |
Automatic Customer Sync
Stripe customers are synced as subscribers with:- Email from Stripe customer
- Name from Stripe customer
- Custom attributes for subscription data
Best Practices
1. Design Mutually Exclusive Tags
For lifecycle states, ensure only one tag at a time:2. Use System Tags Consistently
Stick to the built-in tag names:3. Test Your Rules
Before going live:- Create a test subscriber
- Trigger events via API
- Verify tags are added/removed correctly
- Check that sequences trigger
4. Document Custom Rules
Keep a reference of your custom sync rules:| Event | Add | Remove | Purpose |
|---|---|---|---|
feature_activated | power-user | new-user | Track activation |
support_ticket_opened | needs-support | — | Flag for attention |
support_ticket_resolved | — | needs-support | Clear flag |
5. Don’t Overcomplicate
Start with default rules, add custom ones as needed:Debugging Sync Rules
Check Event Fired
View subscriber’s event history in dashboard.Check Tags Applied
View subscriber’s current tags after event.Common Issues
| Issue | Cause | Solution |
|---|---|---|
| Tag not added | Event name mismatch | Check event name exactly |
| Old tag not removed | Not in removeTags | Add to removeTags array |
| Sequence not triggering | Tag trigger doesn’t match | Verify sequence trigger |
Related
Events
Events that trigger sync rules
Tags
Tags managed by sync rules
Sequences
Automations triggered by tags
Subscribers
Contacts that receive tags