Unsubscribe Link Using Customer Key



In a realm with Customer Key enabled, your Unsubscribe Link must submit a unique identifier for each contact.  Customer Key is only available on some systems.

To Create an Unsubscribe Link using Customer Key

  2. Select a List.
  3. From Generate select 'Unsubscribe Link'.
  4. Select 'Use customer key for contact lookup'.
  5. Enter a Goto URL for the landing page.  If no landing page is defined, the form will use the Landing Page defined in your List properties.  If no Landing Page is defined, the contact will see a default platform welcome page.
  6. Enter an Error Landing Page. If no landing page is defined, the form will use the Landing Page defined in your List properties.  If no Landing Page is defined, the contact will see a default platform error page.
  7. Click NEXT.
  8. Select the link code and paste into a text editor to customize it if necessary.  The Customer Key tag will be automatically included in the link code.
  9. Test the link, then place the link code iinto your message content.


The following is an example of how the link code will appear, where [siteURL] is the URL of your domain, [slid] is the special list id, [format] is the preferred email format, [gotoURL] is the success Landing Page, and [errorURL] is the Error Landing Page.

%%set email = { {urlencode $email} }%% Click to <a href="http:// [siteURL]/bin/listctrl?c=unsubscribe&s=[slid]&customer_key=%%$customer_key%%&g=[gotoURL]&err=[errorURL]">Unsubscribe %%$email%%</a> from this list

The 'set' command at the beginning of the link code is used to encode a contact email address.  This is for cases where a contact has the '+' (plus) character in their email address.  While it is a valid character, it can cause URLs to break because the character is interpreted as a space in a hyperlink.

If you wish to use the link in your site instead of as part of your email message, you can leave out the 'set' command, then replace the %%$customer_key%% tag with your site code to insert the contact customer key and email address.

Please consider carefully how you wish to proceed when using the Customer Key for Unsubscribe Links.  If you choose to create an Unsubscribe Link using the Customer Key, you must be sure to use the link in a way that the correct Customer Key will be passed to the URL.  The best option for Unsubscribe Links in a Customer Key are to use the %%UNSUB_HREF%% tag instead.

If you want to create an Unsubscribe Form using the Email Address instead, then select 'Use email for contact lookup' in step 4.  Be aware that if you have multiple contacts with the same email address, clicking the Unsubscribe Link using email in a Customer Key realm may not unsubscribe the expected contact.  It will find the first contact that matches the email address and unsubscribe that single contact.

Testing the Link

Once you have created a link, test it to ensure it is functioning as expected.  To test your subscription link:

  1. Copy the HTTP link portion from the link code.  For example:
    • http://$customer_key%%&customer_key=%%$customer_key%%&g=http://
  2. Replace the %%$customer_key%% tag with your test customer key.
  3. Paste the customized URL into your browser and click GO.  Verify the expected landing page is displayed.
  4. If you have Subscription Confirmation required in your List properties, you will receive an email with a link to confirm your subscription.  Click the link to subscribe.
  5. Login to your realm.
  7. Enter the Email address submitted above, then click SEARCH
  8. Double click the contact record to view the details.
  9. Verify the subscription was removed in the Subscription tab.

You can also test the link by adding the link code to your message content and then sending a copy of the message to yourself and clicking the link.  The %%$customer_key%% and %%$email%% tags will automatically fill with the data from your contact record.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk