Menu
 

How do I create multiple subscription types?

We have a global unsubscribe option built in to Customer.io. However, if you have multiple types of messages and want to give your users more control over the messages they receive, you can replace our unsubscribe functionality with your own.

There are two options that we recommend:

  1. Custom Unsubscribe Links: This method suppresses people who clicked a specific link in your email.
  2. Creating your own subscription center: This method uses attributes set on a user. In order to set attributes for subscription preferences, you’ll need to host custom code that can identify people to Customer.io when they update their preferences.

Note: The big caveat with this method is that people are not able to re-subscribe after unsubscribing.

For our example, let’s say you have multiple webinars that you run, and you want people to send updates to people about a particular webinar but also give them a way to opt out. This method works great for discrete events that you don’t really want to keep around forever as a preference on the user.

1. Create your different landing pages

You might set up 3 different landing pages. It doesn’t matter what the content is on the page since the person gets unsubscribed when customer.io tracks that they clicked the link. However, you’ll want to make it descriptive for the person landing here so they know that they’ve been unsubscribed.

e.g.

  • mysite.com/unsub/webinarupdates#02-20-2017
  • mysite.com/unsub/webinarupdates#02-27-2017
  • mysite.com/unsub/webinarupdates#03-05-2017

In your newsletter layout, instead of {% unsubscribe_url %} (the default Customer.io unsubscribe URL), paste the link to the page you just created and save. In our webinar example, you would either need to have a different layout for each webinar preference, or move the unsubscribe link in to the body of your message.

3. Create segments to suppress sending to unsubscribed people

Give your new segment the following rule: “Email [any email] has been clicked on link matching [your page URL]”, like this:

Segment

4. Good to go!

You can then use this segment to make sure you don’t send to people who are unsubscribed, like this:

Segment

Advanced: Did you know, you can also use the segment you just created as a trigger in a new campaign to update a user attribute with the attribute update action.

Creating your own subscription center

This method involves setting up your own subscription center area with the options you need, and then sending the data to Customer.io. For example, for people who unsubscribe from all emails in this separate subscription center, you could send us an unsubscribed attribute with a value of true, along with separate attributes for specific unsubscribe types (unsubscribed_from_newsletters = true).

Then, that data can be used to send (or not send) messages to those people. This option affords you lots of control, but can be time-consuming to set up. You can read more about how unsubscribes work here.