How to update the domain settings for your hosted pages
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
- Click your account name in the bottom left corner.
- Select Settings > Other > Consent pages.
- Scroll down to the Custom hosted pages section. If you see Enable Custom Pages, click it to enable hosted pages.
- 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.
- 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.

- 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 |
- 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
- 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
- How to translate consent pages into different languages
Learn how to translate the text in your consent pages (i.e., subscribe, unsubscribe, and manage preferences pages) into the language that your subscribers use.
- How to custom code consent pages
Learn how to enable and use Klaviyo's hosted pages feature, which allows you custom code your own preference pages, subscribe pages, and unsubscribe pages.