Klaviyo Preference Center Hosted Page Setup
This guide explains how to use a second Klaviyo hosted page so subscribers who click manage preferences (or your preference center link) are redirected to your Last Chance preferences screen—using the same Last Chance script as the unsubscribe hosted page, with one extra attribute.
Overview
Klaviyo can host custom HTML for consent flows, including a page used when someone opens their email preferences. By creating a dedicated hosted page and assigning it in Klaviyo’s consent settings, you can send those visitors to Last Chance with entry=preferences so they land directly on your preferences experience (topics, frequency, pause, etc.).
Benefits
- Same pattern as unsubscribe — One script URL; add
data-entry="preferences"for the preference-center page only - No template surgery — Works with Klaviyo’s default preference links once the consent page is wired
- Optional — Unsubscribe hosted page setup is unchanged; this is an additional step if you want preference links in Last Chance
Prerequisites
Before you begin:
- ✅ Unsubscribe hosted page setup is complete (or you understand that flow) — see the Klaviyo Hosted Page Setup Guide
- ✅ Your Last Chance page is published and includes an enabled preferences screen in the flow
- ✅ Klaviyo hosted pages are enabled (same as for unsubscribe)
- ✅ Admin access to Klaviyo
Setup Process
Step 1: Create a second hosted page
- Go to Klaviyo Hosted Pages
- Click Create New Hosted Page
- Name it clearly (e.g.
last_chance_preferences)
Step 2: Paste the HTML code (preference center variant)
Copy the personalized HTML below. It is the same as the unsubscribe snippet plus data-entry="preferences" on the script tag so Last Chance opens the preferences screen.
Note: If you view this guide while signed in at Settings → Email Providers → Klaviyo, your team ID is filled in below. In the public docs, sign in and refresh to see your code.
🔒 Authentication Required: To see your personalized HTML code with your team ID, please sign in to your account. Once signed in, refresh this page to see your personalized code automatically populated below.
Step 3: Assign the page in Klaviyo consent settings
- Open Klaviyo Consent Pages Settings
- Find the section for email preferences / manage preferences (wording may vary by account)
- Choose Use hosted page (or equivalent) and select the hosted page you created
- Save
For Klaviyo’s own UI details, see their help center (e.g. custom consent / hosted pages).
How It Works
1. Subscriber opens manage preferences from email or profile
↓
2. Klaviyo loads your preference-center hosted page
↓
3. Last Chance script runs (with data-entry="preferences")
↓
4. Browser redirects to /unsub?...&entry=preferences&source=klaviyo
↓
5. Last Chance shows the preferences screen when it exists and is enabled
If the preferences screen is missing or disabled in your published template, visitors fall back to the normal entry screen (initial).
Verifying Setup
- Use Klaviyo to send a test that includes a manage-preferences link, or trigger the preference URL Klaviyo provides
- Confirm you land on your Last Chance preferences UI
- Dashboard — The optional onboarding step Set up Klaviyo preference center hosted page can auto-complete after a real visit with
source=klaviyoandentry=preferences
Reverting
In Consent Pages settings, switch the preference / manage-preferences flow back to Klaviyo’s default (or another page) instead of your Last Chance redirect hosted page.
Troubleshooting
- Lands on initial page, not preferences — Ensure the published flow has preferences enabled; check the script includes
data-entry="preferences"on this hosted page only (not on the unsubscribe hosted page) - Hosted page not loading script — Compare with the working unsubscribe HTML; only the
data-entryline should differ - Unsubscribe still works — Keep your unsubscribe hosted page as a separate Klaviyo page without
data-entry
Related
For support: support@yourlastchance.app