Create a Custom Profile Center with AMPscript
This page contains information about creating a custom Profile Center for Email Studio's Web Collect that takes information entered on a web page and uses it to update information in your Marketing Cloud account. This Profile Center also triggers a send using information taken from Marketing Cloud.
Email Studio's Web Collect allows your customers to subscribe, provide attribute information, or unsubscribe using forms on your website.
If you allow new subscribers to sign up via your website, you must pass data for all required profile and preference attributes, including those that are defined as hidden, for each new subscriber.
The Email Studio Profile Center displays when a subscriber clicks the Modify Profile link in an email that you sent while using Email Studio.
To access your Profile Center, navigate to the Subscribers | Profile Management section of Email Studio and choose Preview Profile Center. The Profile Center displays all attributes that are not defined as hidden in your account.
The custom profile center includes a workflow specifically designed and developed to take information submitted by a new or existing subscriber and update records accordingly. Because it is a custom solution, you can create it to perform specific actions depending on your needs and your workflow.
Your custom profile center allows you to both manage information inside your Marketing Cloud account and use that information to conduct triggered sends as confirmation of more or changed information in a particular profile. The automation allows the user to keep their information up to date without involving more effort from your team. This profile center also allows you to review tracking information inside Marketing Cloud for analysis and appropriate action.
Northern Trail Outfitters uses Marketing Cloud to manage information about their subscribers and conduct triggered sends regarding information changes to those subscribers. To help customers manage their information, Northern Trail Outfitters builds a custom profile center that takes information from a web form and either creates a new subscriber record in Marketing Cloud or updates an existing record. That change triggers a Marketing Cloud email that includes the appropriate dynamic form information for that record and sends it to the new or existing subscriber.
To set up the triggered sends:
- Download the files via the link on this page, or copy and paste the examples below.
- Edit the AMPscript to customize the variables for your server, configuration, and subscribers.
- Put these edited pages in the correct folder of your local web server (where your Web Collect page is running) that can access the server running Marketing Cloud and also access the SOAP API endpoint. Review the next sections for more details. For more help with your setup, contact your Marketing Cloud account representative.
Follow the steps below to create the custom profile center, which includes several different components:
- A web form used to interact with new and existing subscribers
- The API code necessary to make the calls to Marketing Cloud
- An administrative page used to determine the information that shows in the profile center
- The email message used to communicate profile changes to the subscriber
- The triggered send definition used to send the email message
Use the code below as a sample for your own web form. You can view the entirety of the page on the Marketing Cloud Help, and the sample code below demonstrates how the AMPscript interacts with the SOAP API to save the information entered in the profile center:
The sample code below creates the new subscriber object and updates the information as necessary.
This section retrieves information from data extensions for display.
This section retrieves the list to be modified as part of the activity in the profile center.
Use the sample code as a model for your own administrative page. You can view the entirety of the sample page on the Marketing Cloud Help, and the code below demonstrates how to interact with AMPscript and the SOAP API.
- Create an email message to notify subscribers of added or revised profile information.
- Use a triggered send definition to take the email message created in the last step and send it to subscribers after they complete an action in the profile center.