Forum Discussion
Alex
6 months agoActive Member II
Changing a custom attribute from email click
Anyone knows how to update a custom attribute from the click of a specific email link? (not an email click, but one specified one)
Thanks in advance!
- Manoj__Specialist
Hello Alex You will have to create a middleware to do this.
Your specified link would be middleware link something likehttps://abc.com/middleware?id=external_id (external_id is passed to identify which profile to update in Braze)
now this middleware when accessed will perform 2 operations
- Redirect user to the actual URL
- Do an API call to update custom attribute in Braze based on the external_id received in URL
- reubenramanActive Member
Hey Alex, you can use Braze's Link aliasing feature to trigger a custom webhook to update a user's custom attribute.
You can view the Braze learning course here: https://learning.braze.com/link-aliasing
And documentation here: https://www.braze.com/docs/user_guide/message_building_by_channel/email/templates/link_aliasing?tab=html%20editor#creating-a-link-alias - AllanHeoStrategist
I created a video for a similar use case; this should work for custom attributes as well!
Related Content
- 10 months ago
- 8 months ago
- 2 years ago
- 7 months ago