Typically contacts in Bronto can unsubscribe by either clicking the unsubscribe link contained in an email, or by visiting the manage preferences webform and clicking the unsubscribe link. Sometimes, however, you may want a contact to have the choice to unsubscribe directly by visiting your website. If this is an option you want to offer your contacts, you can use Direct Unsubscribe to accomplish it.

What Is Direct Unsubscribe

Direct Unsubscribe lets you unsubscribe contacts to your site without showing the web application to the end user. This is accomplished by calling a unique URL through an HTML image tag. One thing to note is that this method does require some comfort with web programming to implement.

Setting Up Direct Unsubscribe

To setup Direct Unsubscribe, add the following HTML in your webpage, replacing example@example.com with the real email address you want to unsubscribe:

<img height="0" width="0" border="0" src="http://app.bronto.co/public/actionpage/unsubscribe/?fn=Mail_ActionPage_FormResponse&pid=ek0bo3b6sukhw35z0qt6070zj9p71amp;ssid=8428&email=example@example.com">

In most cases, you will want to dynamically add the email address to the URL. There are numerous ways to to do this in different programming languages. For an example on how to add values to a URL using JavaScript, see Dynamically Adding Values To Conversion Tracking URLs. Although this post uses the conversion tracking URL as the example, the concept applies to Direct Unsubscribe URLs as well.

You will also want to insert a form on your website that asks a contact to enter their email address if they wish to unsubscribe (aka an unsubscribe form). Once the contact enters their email address and clicks the submit button, the form should take them to a confirmation or thank you page.

Once the Direct Unsubscribe URL is set up, you can place it within the body tag of the confirmation or thank you page. It is very important that the Direct Unsubscribe URL is placed on the confirmation or thank you page so that the data that is inserted into the unsubscribe form can be passed to the URL string.

That's it! Once the contact has reached the confirmation or thank you page, their unsubscribe request is passed back to Bronto via the string of code you inserted on that page. They are also made inactive in the Bronto account. Direct Unsubscribe is set up almost exactly the same way as Direct Add, so if you need another point of reference, see our blog post here.

Rob Slade
Bronto Client Services