Landing pages

Publish a hosted page with your sign-up form, set its search details, watch visits and sign-ups, and group pages into a site.

Embed
Preview of the card
<a href="https://hermeticor.com/guides/landing-pages"><img src="https://hermeticor.com/guides/_api/public/orgs/5fcd8b3c-a27c-4688-972f-de710125592f/spaces/9a3da731-ded5-4536-b84f-8c9a61420ff4/pages/1a96dd38-c8b1-4a08-b158-ec5f897fc7ef/social-card.svg?v=3e7ae33eec8b" alt="Landing pages" width="600" height="315"></a>

A landing page is a hosted web page built from blocks, with an optional form under them.

What you need first

  • A published form, if the page collects sign-ups (see Sign-up forms).

  • A key with forms:write.

1. Create the page

curl -s -X POST "$BASE/v1/landing-pages" \
  -H "Authorization: Bearer $HERMETICA_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"Webinar: Bring your own provider","slug":"webinar-byo-provider","locale":"en",
       "seoTitle":"Webinar: send through the provider you already use",
       "seoDescription":"A 30-minute walkthrough on 19 November. Save your seat.",
       "formId":"<formId>",
       "doc":{"blocks":[
         {"type":"text","html":"<h1>Bring your own provider</h1><p>A 30-minute walkthrough on 19 November.</p>"},
         {"type":"image","src":"https://example.com/webinar.png","alt":"Webinar host"}]}}'
  • slug is lowercase letters, digits and dashes. It is the end of the page address.

  • Blocks are the same as in email templates: text, image, button, columns, section, divider and more.

  • noindex: true keeps the page out of search engines.

2. Publish it

curl -s -X POST "$BASE/v1/landing-pages/<pageId>/publish" -H "Authorization: Bearer $HERMETICA_API_KEY"

The page is live at the url in the answer: $BASE/p/l/<workspaceId>.webinar-byo-provider. Later edits stay in a draft until you publish again.

3. See how it does

curl -s "$BASE/v1/landing-pages/<pageId>/analytics" -H "Authorization: Bearer $HERMETICA_API_KEY"
# {"visits":..., "signups":..., "conversion":...}
curl -s "$BASE/v1/landing-pages/<pageId>/analytics/daily?days=30" -H "Authorization: Bearer $HERMETICA_API_KEY"
curl -s "$BASE/v1/landing-pages/<pageId>/seo" -H "Authorization: Bearer $HERMETICA_API_KEY"

4. Group pages into a site

curl -s -X POST "$BASE/v1/page-sites" \
  -H "Authorization: Bearer $HERMETICA_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"Example Co events","menu":[{"label":"Webinar","pageId":"<pageId>"}]}'

Every page in the site shows the same menu.

Other options

  • redirect: {"url":"https://example.com/recording","status":302} sends visitors elsewhere, for example once the webinar is over.

  • unpublishAt takes the page down at a set time.

Next: Monthly newsletter.

Updated