Adding Subscription Links
Creating subscription links in e-mails involves adding methods to your Dreamweaver Template to generate Subscription links in the email and adding query string parameters to the Add Subscription URLs to Package Template Building Block.
The following methods are available to add to Dreamweaver Templates to generate Subscription links in emails:
| Method Name | Description |
|---|---|
AudienceManager_ChangeProfileURL | Creates a link to the webpage in which a subscriber can change their personal information. |
AudienceManager_UnsubscribeURL | Creates a link to the webpage in which a subscriber can unsubscribe. |
AudienceManager_ConfirmURL | Creates a link to the webpage in which a new subscriber confirms their subscription. |
The following code is an example of adding subscription links in a Dreamweaver Template:
<a href="@@AudienceManager_ConfirmURL@@">Click here to confirm subscription</a>
<a href="@@AudienceManager_ChangeProfileURL@@">Click here to change your profile</a>
<a href="@@AudienceManager_UnsubscribeURL@@">Click here to unsubscribe</a>
The URLs for ChangeProfile, Unsubscribe, and Confirm links are defined in the Audience Management tab of a Publication's properties:
- Unsubscribe page URL—the URL of the webpage in which a subscriber can cancel their subscription.
- Change profile page URL—the URL of the webpage in which a subscriber can change their personal information.
- Subscription confirmation page URL—the URL of the webpage in which a new subscriber confirms their subscription.
Optionally, you can add query strings to the URLs (for example to identify the individual Contact) for ChangeProfile, Unsubscribe, and Confirm URLs by specifying the following parameters for the Add Subscription URLs to Package Template Building Block:
- Unsubscribe Query String—define a query string to add to the Unsubscribe URL
- Change Profile Query String—define a query string to add to the Change Profile URL
- Confirm URL Query String—define a query string to add to the Confirm Subscription URL
You configure the confirmation emails that are sent when a user subscribes in the <ConfirmationEmailDefaults> and <ConfirmationEmails> sections of the OutboundEmail.xml configuration file. For more information, see Configuring confirmation e-mails.