Add a signup form to your website

Last updated November 28, 2026

Build a signup form in Simpu, paste one snippet into your website, and everyone who fills it in is added to your contacts, ready for your next broadcast. It works on WordPress and on any other site where you can add HTML. You don't need to write any code.

Before you start: get a publishable key

The form uses a publishable key to add contacts to your account. The key only works on the websites you allow. It can't read or delete your contacts, or overwrite anything in them, so it's safe to use on a public page.

  1. In Simpu, go to Developers → API Keys.
  2. Under Publishable Key, click Generate publishable key.
  3. Under Allowed Origins, type your website's address and press Enter.
  4. Click Generate key.
The Generate publishable key window, with https://example.com added as an allowed origin

Type the address exactly as it appears in the browser's address bar when someone visits your site:

  • Include https://.
  • Leave out the trailing slash and any page path: https://example.com, not https://example.com/ or https://example.com/home.
  • If your site opens on both example.com and www.example.com without one redirecting to the other, add both.

Your key and its allowed origins then appear on the page:

The API Keys page showing the publishable key and its allowed origin, https://example.com

Regenerating the key replaces the old one. Any form that uses the old key stops working, so if you regenerate it, copy the embed code again (step 2) and update your website.

Step 1: Build your form

The form builder has your form's fields and settings on the left and a preview on the right.

The form builder: Email and Name are visible fields, Phone and City are hidden, and the preview shows a newsletter form
  1. Go to Contacts and click Form in the left panel.
  2. On the Fields tab, choose what to ask. The fields are the columns in your contact list. Drag a field into Visible Fields to show it, or into Hidden Fields to leave it out. For a newsletter, an email address (and maybe a name) is usually enough.
  3. Click a visible field to change its label, and switch on Required for the email field.
  4. On the Settings tab:
    • Display Type: choose Inline to place the form inside a page, which suits a newsletter section. Popup puts a button with your form's title in the bottom-right corner of the page instead, and the form opens when someone clicks it. Full Page adds the form below everything else on the page, so use it on a page that holds only the form.
    • Form Title, Description and Submit Button Text: for example "Get our newsletter", "New releases and events, about once a month" and "Subscribe".
    • Submit Message: what people see after they sign up. To send them to a thank-you page instead, switch on Redirect After Submit and add the Redirect URL.
    • Allow Resubmit: switch this off for a newsletter, so the thank-you message doesn't invite people to submit again.
  5. On the Theme tab, set the Primary Color to match your brand, add a Logo or Cover Image if you want one, and choose whether to Show "Powered by Simpu".
  6. Changes save on their own as you make them. Before you leave the page, check that it says All changes saved; if it doesn't, click Save.
The Settings tab with Display Type set to Inline and the newsletter's title, description and button text filled in

The preview on the right shows the form as visitors will see it. You can change the form at any time. Your website shows the saved changes the next time the page loads, and you don't need to update the snippet.

Step 2: Copy the embed code

Click Get Embed Code, then click the copy button.

The Embed Form window with the embed code and its copy button

For an inline form, the code looks like this:

HTML
<div id="simpu-form"></div>
<script src="https://mails.simpu.co/form-embed.js"
  data-public-key="spk__your_key"></script>

Always copy the code from Simpu, as it already contains your key.

Step 3: Add it to your website

WordPress

  1. Open the page you want the form on, for example your homepage, in the editor.
  2. Click + where you want the form and add a Custom HTML block.
  3. Paste the embed code, then click Update (or Publish).

If you don't use the block editor:

  • Classic editor: switch to the Text tab and paste the code where you want the form.
  • Elementor: drag an HTML widget onto the page and paste the code into it.
  • Footer or sidebar: go to Appearance → Widgets and add a Custom HTML widget.

You need to be an Administrator to add scripts. On WordPress.com, scripts only run on plans that allow plugins.

Other websites

Paste the code into your page's HTML where you want the form to appear. Most website builders have an Embed or Custom code block for this.

Add one form per page. Here's an inline form on a bookshop's homepage:

A bookshop homepage with the newsletter form beside its headline

Step 4: Test it

  1. Open your website at its real address in a private browser window.
  2. Sign up with an email address that isn't in your contacts yet.
  3. In Simpu, go to Contacts → List. Your new contact is at the bottom of the list.
The contact list with the new signup, Kemi Adebayo, at the bottom

What happens when someone signs up

  • They're added to your contacts straight away. Simpu doesn't send a confirmation email first, as double opt-in isn't available yet. Use the form's description to say what people are signing up for and how often you'll email them.
  • Signing up twice doesn't add a second contact. Simpu looks for the email address (or the phone number, if no email is given) in your contacts. When it finds it, it only fills in details that contact was missing. It never changes what's already there, or adds an email address or phone number.
  • People who unsubscribed stay unsubscribed. Signing up again doesn't take anyone off your Unsubscribers list.
  • There's no CAPTCHA yet. If you start getting junk signups, contact support@simpu.co.

If the form doesn't appear

  • An error shows where the form should be. The page's address doesn't match your allowed origins. Compare the address bar with the addresses on Developers → API Keys: https:// or http:// and www. both count.
  • Nothing shows at all. A speed or caching plugin may be changing the script. In plugins such as WP Rocket, Autoptimize or LiteSpeed Cache, exclude form-embed.js from JavaScript optimisation. If your site uses Cloudflare's Rocket Loader, add data-cfasync="false" to the script tag: <script data-cfasync="false" src="….
  • You're testing on a staging site or your own computer. Add that address to your allowed origins too, for example https://staging.example.com or http://localhost:8080.

Still stuck? Email support@simpu.co with your website's address and we'll take a look.