Forum Discussion
meganhankins
5 months agoCollaborator
Unsubscribing from Subscription Groups
How can we set the unsubscribe to only remove the user from the specific subscription group? We don't want to do this through a preference center. We just want to have a link that automatically remov...
eakinsey
Community Manager
5 months agoHi meganhankins! I checked in with the team and have some advice for you!
To set up an unsubscribe link in Braze that removes a user from a specific subscription group without using a preference center, you can follow these steps:
Creating a Custom Unsubscribe Link
- Custom Unsubscribe URL: Create a URL that includes the subscription_group_id for the specific group you want the user to unsubscribe from. This URL should be embedded in the email, either in the footer or within the email content.
- Use Liquid Tags: Utilize Liquid tags to dynamically generate the unsubscribe URL. This allows the URL to be specific to the subscription group associated with the email.
- API Call: When the user clicks the unsubscribe link, it should trigger a call to the Braze REST API to update their subscription status for that specific group. This involves using the appropriate API endpoint to change the user's subscription state for the targeted group.
Importing Users via CSV
When importing users via CSV, you need to manage the subscription_group_id carefully to ensure users remain subscribed to all relevant groups:
- CSV Format: Ensure your CSV file includes a column for subscription_group_id and that each user entry lists all applicable subscription group IDs.
- Multiple Subscriptions: If a user belongs to multiple subscription groups, include all relevant subscription_group_ids in the CSV. Braze will process these IDs and update the user's profile accordingly.
- No Overriding: Braze will maintain existing subscriptions across overlapping groups as long as the CSV import includes all relevant subscription_group_ids for each user. The import process will not override existing subscriptions unless specified in the CSV.
Additional Considerations
- Testing: Test the unsubscribe link and CSV import process in a staging environment to ensure they function as expected.
- User Experience: Provide a confirmation message to users after they unsubscribe to enhance their experience.
- Compliance: Ensure your unsubscribe process complies with relevant regulations and laws.
Let me know if that helps! And if it does answer your question, please mark my reply as the solution to help others facing the same or similar issue find the answer. Thanks!
Related Content
- 7 months ago
- 2 years ago
- 2 years ago