Temporarily prevent Klaviyo signup forms from appearing
Use the kl_forms_off cookie to prevent Klaviyo signup forms from opening on your website. For example, your developer can set this cookie for visitors arriving from an SMS campaign, email, partner link, or in-app browser.
Your website controls when the cookie is set and removed. Klaviyo does not manage the cookie or automatically set it from URL parameters.
Before you begin
This setup requires access to your website’s code and may require a developer. The cookie applies to all Klaviyo onsite forms, including popups, flyouts, full-page forms, banners, embeds, and teasers. It also prevents forms opened through custom triggers from opening.
Prevent forms from opening
Set a first-party cookie named kl_forms_off with the value true before a form attempts to open:
document.cookie = 'kl_forms_off=true; path=/';This example creates a session cookie available across your website’s paths. Your developer can configure an expiration if suppression should last longer.
While the cookie is set to true:
- Klaviyo forms and teasers do not open.
- Blocked opens do not record form views or viewed-step metrics.
- Klaviyo’s onsite scripts still load and evaluate form triggers.
The value is case-insensitive and ignores surrounding whitespace. Values such as false or 1 do not prevent forms from opening.
Allow forms to open again
Remove the cookie:
document.cookie = 'kl_forms_off=; Max-Age=0; path=/';If your developer set a domain or a different path when creating the cookie, use the same domain and path when deleting it.
Once the cookie is removed, forms can open when their normal targeting and display conditions are met.
Test your setup
- On a test website, set the cookie before a form’s display conditions are met.
- Reload the page and confirm that forms and teasers do not appear.
- Remove the cookie and reload again.
- Confirm that eligible forms can appear.
The form editor and onsite preview ignore this cookie. Test on your website to verify suppression.
If a form still opens, check that the cookie name is exactly kl_forms_off, its value is true, and it is available on the page before the form attempts to open.