Buttondown Documentation
When you can write a newsletter email using a subscriber's first name, it can give a friendly, personal feeling to your words. If you’ve ever received an email that starts with “Dear [Your Name Here]” as opposed to “Dear Reader,” it’s likely that there was a mail merge or substitution string involved—and those mail merges and substitution strings rely on metadata to work properly.
Read on to learn about how you, too, can collect and use metadata to personalize your newsletter!
By default, Buttondown’s subscription forms only collect subscribers’ email addresses. Without any adjustments, your subscription form will look something like this.
But with a few customizations, you can use Buttondown's subscription forms to ask subscribers for their names, the names of the companies they work for, their interests, or any other facts that might be useful for your newsletter!
Buttondown’s “Subscribe Form Inputs” feature is a convenient way to collect metadata from subscribers who fill out your subscription form. Here's how to modify it.
You’ll be prompted to provide the following values for your new form input:
When you add all these things to your form, it looks something like this:
This video shows the process of creating a form input and saving it.
After you create a form input, navigate to your newsletter landing page to see the changes you’ve made.
This video shows a subscription form being completed, including new metadata fields.
When a subscriber fills out this new form, you’ll be able to see their response in the “Metadata” section of the subscriber's “Notes.” Here's how:
Prefer to go the manual route for updating your subscribers’ metadata? Go ahead and add your input key and value in the “Metadata” section of your subscriber’s “Notes” page. Here's how:
Want to add metadata to an existing subscriber using our API? Copy the code below and plug in your subscriber ID (which you can find in the subscriber’s “Notes”), as well as your personal API key (which you can find in the “API” section of your Buttondown settings). Then add your input key and its corresponding value.
Run this code, and the metadata in your subscriber “Notes” should be updated and ready to go.
Instead of addressing emails one at a time, you can address them automatically using Buttondown’s {{ subscriber.metadata }}
template variable. By plugging your “first_name” key into this template variable, you'll direct Buttondown to retrieve each subscriber’s first name for you!
Paste this template into your email writing interface, then sit back and let Buttondown do the rest.
This video shows the email writing client with a first name metadata variable in the salutation line.
After your email goes out, your personalized email greeting will look something like this.
This video shows the email after it was delivered, with the subscriber's first name replacing the metadata variable in the salutation line.
But wait! What if you don’t have first names for every subscriber? Then it’s time to break out our “If / Else” template. This lets Buttondown choose between using a first name, if one is available, and a placeholder name if not. Check out the example below.