Wire real Listmonk list UUID into leads form #4

Merged
ilia merged 1 commits from listmonk-leads-uuid into master 2026-07-25 13:45:28 -05:00
2 changed files with 6 additions and 11 deletions
+4 -5
View File
@@ -40,12 +40,11 @@ git push origin master
## Email capture (Listmonk)
The page has a "not ready to book" email form near the bottom that posts to Listmonk (`listmonk.levkin.ca`) via `POST /api/public/subscription`. One-time setup before it works:
The page has a "not ready to book" email form near the bottom that posts to Listmonk (`listmonk.levkin.ca`) via `POST /api/public/subscription`.
1. In Listmonk admin, create a list (e.g. `auto.levkin.ca leads`) and make sure "Enable public subscription page" is on for it.
2. Copy the list's UUID.
3. In `index.html`, replace `REPLACE_WITH_LIST_UUID` (search for it) with that UUID.
4. If Listmonk enforces a captcha on public subscriptions, the plain `fetch` call in the inline `<script>` will need a captcha token added — check Listmonk's Security settings first.
Wired to the **`auto.levkin.ca leads`** list (public, single opt-in, id 6 in Listmonk) — UUID is hardcoded in `index.html` (`input[name="l"]`). Subscribers land in Listmonk admin under that list; no confirmation email required before they're counted (single opt-in), so double-check for typo'd addresses before sending campaigns.
If Listmonk starts enforcing a captcha on public subscriptions, the plain `fetch` call in the inline `<script>` will need a captcha token added — check Listmonk's Security settings first.
## Design
+2 -6
View File
@@ -520,12 +520,8 @@
placeholder="you@yourbusiness.com"
required
/>
<!--
Replace REPLACE_WITH_LIST_UUID with the UUID of a Listmonk list
(Listmonk admin -> Lists -> create "auto.levkin.ca leads" -> copy UUID).
EnablePublicSubPage must be on for that list in Listmonk settings.
-->
<input type="hidden" name="l" value="REPLACE_WITH_LIST_UUID" />
<!-- List: "auto.levkin.ca leads" (public, single opt-in) in Listmonk. -->
<input type="hidden" name="l" value="84422fe9-61df-4bcd-8b2b-65a335a9a141" />
<button type="submit" class="btn btn-ghost">Subscribe</button>
</form>
<p id="subscribe-status" class="subscribe-status" role="status" aria-live="polite"></p>