Buttondown Documentation
Now that you've got a newsletter up and running, you can think about how to add more subscribers so more people can read and engage with what you write. You might spread the word about your newsletter through social media, other publications, or simple word of mouth. However you start, potential subscribers need a place to go where they can find your newsletter and subscribe.
There are three main ways you can grow your subscriber base without writing a single line of code:
Every newsletter has a unique URL. When someone loads that URL, a page with the option to subscribe to your newsletter appears.
Your newsletter's URL is https://buttondown.com/{{username}}
, where "{{ username }}" is replaced with the username of your Buttondown account. You can use this link anywhere on the internet, like in emails or blog posts, to give folks a place to go when they want to subscribe or read your past emails.
Fun fact: if you use tags, you can automatically tag subscribers by adding a GET
parameter of tag
to this URL! For instance, to add the tag sandwich
to all subscribers, you'd use the URL:
Buttondown exposes a URL endpoint that you can point any <form>
tag at to get an HTML-friendly form. This is great for platforms like Wordpress or Cargo that are very HTML-friendly, as well as static site generators or JAMStack sites. Additionally, you can style this form to your heart's content.
Below is an example of a basic form that uses this endpoint:
You can also specify one or more tags to automatically apply to new subscribers by using the tag
value in your form. The following example tags a new subscriber with foo
:
If you want a seamless, pre-styled way to include a subscription option on your site, the iFrame may be the tool for you. Here's an example:
Not seeing Tags for your subscribers? Make sure this feature is enabled in Settings.
Using query parameters
If you're using the subscribe page available at your newsletter's URL, you can automatically add new tags to new subscribers by adding a query parameter to the URL. The example below automatically gives people who subscribe through the link a tag called python
:
If you want to apply multiple tags at once, you can add multiple such query parameters. Here's an example:
Using HTML
If you'd prefer to use HTML, augment your form to add an input
tag with a name of tag
. If you want to, you can supply multiple input
s. Buttondown will apply all tags.
In the example below, the value
associated with the tag being passed is the name of the tag, not the ID. You can in fact use either the name or the ID and Buttondown will do the right thing (including automatically creating a tag with the given name, if no such tag exists yet).
You can read our docs to learn more about tags.
Using the API
First time using the Buttondown API? Make sure this feature is enabled in Settings.
If you're feeling clever, you can update the tags of your subscribers using Buttondown's API.
The API also enables you to automatically tag users by setting up an automation.
For example, if you wanted to immediately apply a tag to any reader who clicked a link in a certain email, the automation might look like this:
In the example above, we use the bulk action of apply_tags
to tag the users. That requires two pieces of information to be passed as metadata: The ID of the desired tag, and the action we'd like to take (add
or remove
)
Here are some resources for creating your own tagging automation:
On your Buttondown subscribe form
Buttondown's subscription form doesn't ask for any metadata by default. All it needs is a subscriber's email address and, if you're running a paid newsletter, their payment information.
If you want to collect more information, though, you can add custom subscribe form inputs. You can find these at the bottom of your design settings page. Inputs have three attributes:
Using HTML
Here's an example that uses HTML:
Set inputs with the name
of metadata__<key>
, as you can see in the code sample above:
These inputs can be freeform text, like above, or hidden
inputs if you want to invisibly augment your subscription forms with metadata. For example, you can imagine setting metadata for everyone who accesses your newsletter from a particular tag or webpage.
Another example is below:
You can read our docs to learn more about metadata.
To learn how to create an automated email to send to new subscribers, read Automations.
If you need to change a subscriber's address, you can go into the Notes screen for that subscriber and tap their address to change it. To learn more, watch this video.
We're piloting a program using https://www.hcaptcha.com/ and will be bringing it (on an opt-in basis) to GA soon!
Instagram's browser is a little, uh, finicky. Take out the target="popupwindow"
attribute from the form tag and it should work.
To embed your subscription widget in Medium, all you need to do is post your newsletter's URL in Medium. It should automatically embed, thanks to the powers of oEmbed.