Signup forms
Newsletter › Signup forms makes forms that sign people up on any website: yours on Digize, or one you run anywhere else. Each form opens in an editor with a live preview, which is the embed itself drawing your changes.
How a form shows
Section titled “How a form shows”| Shows as | |
|---|---|
| Inline | In the page, where its snippet is, or in an element you mark with data-digize-newsletter-form="<form id>". |
| Popup | A dialog over the page. |
| Slide-in | A small card that slides up in the bottom right or left corner. |
| Full page | Covers the whole page until it’s closed. |
A popup, slide-in or full-page form shows once any rule you turn on says so, or as the page opens with none on:
- After a delay: so many seconds after the page opens.
- After they scroll: once they’ve scrolled so much of the page.
- As they’re about to leave: when the pointer heads for the browser’s bar, on a computer.
Once someone closes it, it waits so many days before showing again in their browser (0 shows it on every page). With Not to people who signed up on, a browser that signed up through any of your forms never sees it again. Any button or link on your page with data-digize-newsletter-open="<form id>" opens that form.
Popups and full-page forms are dialogs: focus moves into them and stays there, Esc closes them, and focus goes back where it was. Every field has a label.
What a form says and asks for
Section titled “What a form says and asks for”- Words: the heading, text, button, a line under the button, the message once they’ve signed up, and the one when they still have to confirm by email. Or send them to a page of yours instead, such as a thank-you page.
- Fields: their email always; their name if you like (optional or required); and up to ten of your CRM custom fields, each optional or required. Answers go on their contact.
- Look: background, text, button and button text colours, corner rounding, a picture above the heading, and for a slide-in, its corner.
- Signing up: whether they confirm by email (as Newsletter settings say, always, or never for this form), and tags their contact gets.
A signup keeps the form as where they came from, with the page they were on, the UTM tags on its address and their country, which the Subscribers page and segments filter by.
Putting a form on a website
Section titled “Putting a form on a website”The editor’s Put it on a website card has the form’s snippet:
<script src="https://digize.com/_platform/newsletter/embed.js" data-key="dgz_pk_…" data-form="nlf_…" async></script>Paste it into any page. It’s small and needs nothing else; the form keeps your site’s fonts out and its own colours in. On your Digize sites, tick the sites under On your Digize sites, without the snippet instead: Digize adds it to their pages as they’re served.
Every signup is limited per visitor, and a hidden field catches bots. Turnstile (Cloudflare’s check) runs where a widget covers the page’s address: on your yourfreesite.com sites, and on your own domains once Reviews › Widgets has made your workspace a Turnstile widget covering them. Elsewhere, turn on Ask new subscribers to confirm in Newsletter › Settings (or on the form), so nobody gets posts who didn’t ask.
The publishable key
Section titled “The publishable key”The snippet carries your workspace’s publishable key (dgz_pk_…), made with your first form. It’s safe in a web page: it signs people up, reads published posts and shows a subscriber their referrals, and can do nothing else. Newsletter › Settings › General › Publishable key shows it, and Make a new key replaces it: the old one stops working at once, so update pages that carry it (your Digize sites’ forms switch by themselves).
Your own form
Section titled “Your own form”A page can sign people up with a form of its own, calling POST /api/v1/newsletter/subscribe with the publishable key (see the Newsletter API). The AI coding agent builds those for your Digize sites.
Numbers
Section titled “Numbers”The forms list shows each form’s signups (subscriptions it started) and how many of them are subscribed now. See its subscribers opens Subscribers filtered to the form.