You will learn

Learn how to use a custom domain, such as pages.yourbusiness.com, for your hosted pages in Klaviyo. This includes custom-coded subscribe, unsubscribe, and preference pages.

Before you begin, make sure you have hosted pages enabled for your account, permission to edit account settings, and access to your domain's DNS records.

Update the dedicated domain settings for your hosted pages

  1. Click your account name in the bottom left corner.
  2. Select Settings > Other > Consent pages.
  3. Scroll down to the Custom hosted pages section. If you see Enable Custom Pages, click it to enable hosted pages.
  4. Turn on Use custom dedicated domain for hosted pages if it is not already on. This displays the domain field and the CNAME target for your account.
  5. Choose a hostname (a subdomain plus your domain) and add a CNAME record for it in your DNS provider's settings.
    • For example, if you own a company called The Book Exchanger, the chosen hostname here might be: pages.bookexchanger.com, where “pages” is an arbitrary choice as the subdomain, and “bookexchanger.com” is your business domain.
    • Point the CNAME record to the exact domain shown beneath Hosted Pages Dedicated Domain in your account. This makes your chosen hostname an alias for your Klaviyo-hosted domain. For The Book Exchanger, the target might be bookexchanger.myklpages.com. Use the value shown in your account rather than constructing it from your business name.
  1. Check the CNAME record you added. For The Book Exchanger, it would look like the example below. Use your own hostname and the target shown in your Klaviyo account.

Type

Hostname

Value

CNAME

pages.bookexchanger.com

bookexchanger.myklpages.com

  1. In Hosted Pages Dedicated Domain, enter the hostname you added to your DNS records, using the format [a subdomain].[your domain].
    • Example: pages.bookexchanger.com
  2. When you confirm that this information accurately reflects the CNAME record you have added, click Update Dedicated Domain Settings to save this information in your account. Klaviyo validates the CNAME record and displays a confirmation when your settings are saved.

If Klaviyo reports that no CNAME record points to the required domain, check the hostname and target in your DNS provider’s settings. If the validation times out, try again. After a validation error, re-enter your chosen hostname before saving again, because the field returns to the previously saved domain.

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Partners
Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type