Has anyone implemented a custom subscription center using landing pages? The example one from the documentation doesn't seem to be working. I would really like to just customized the out of the box one but the amp script is hidden when I view source. Does anyone have and tips/tricks for creating a sub center?
Thanks!
Best Answer
Yes. Custom preference centers are generally complex and are often via engagement either with SFMC directly or via SFMC partner. The ones I've done have taken 30-50 hours depending on the requirements.
As for tips and tricks...
Understand the SFMC data model and how subscriber statuses are handled for your account type (global, business unit, publication). Things are handled differently in an Enterprise 1.0 account than they are in an Enterprise 2.0 account.
Use Server-Side JavaScript to leverage arrays and functions. The coding can be done entirely in AMPScript, but it's easier to create object-oriented code in SSJS.
Utilize the SOAP examples when structuring your API calls
Be sure to correctly log unsub events when handling unsubscribes
I normally build preference centers in 4 pages:
2021-10-28 Update:
Here's the boilerplate that I use.