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:

javascript
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:

javascript
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

  1. On a test website, set the cookie before a form’s display conditions are met.
  2. Reload the page and confirm that forms and teasers do not appear.
  3. Remove the cookie and reload again.
  4. 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.

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