I'm building a custom Unsub page for a client. In each email there should be a custom URL that passes the Publication list ID of the Publication list used for the send, so that users can unsubscribe from that publication list.
I know this functionality comes standard with the default Unsub Center but the client wants to ensure the visual aspect of their Unsub Center matches with their branding. And since default Unsub and Profile centers cannot be edited via HTML/CSS/etc they wanted to have a totally customized Unsub Page.
Fast forward to now, I am able to unsub/re-sub using a code I created with no problem, but the "lid" (list ID) value is fixed to the one I input.
But that "lid" value should be dynamically populated from the custom URL in the email.
How can I pass the List ID via the custom URL? I believe I would have to:
- Retrieve the list ID
- Declare the list ID as variable
- Insert the variable in the URL
Is that correct? Any ideas on how to go about this would be greatly appreciated.