About Cookies in Klaviyo

Last updated at:


Klaviyo uses cookies as a part of our web tracking model to gather information to improve conversion rates and email performance. This article explains the specific cookie we use and its purposes so that you understand how customers are tracked. This information helps you understand how Klaviyo gathers data, and how this may impact customer privacy and compliance laws.

In order to maintain GDPR compliance, you should display links to your Privacy Policy, Terms of Service, and cookie policy in all of your emails.

Klaviyo Tracking Cookies

When Klaviyo’s JavaScript is enabled, the __kla_id cookie can track and identify site visitors through an auto-generated ID. This cookie can temporarily hold personally identifiable information. Once a visitor is identified, the cookie can pass their data into Klaviyo. A visitor can be identified when they: 

  • Fill out a Klaviyo signup form 
  • Click a link from a Klaviyo email 

Once a user is identified, this web cookie will last for two years. If the JavaScript option is off, customers will not be cookied, you will not have access to web tracking, and Klaviyo signup forms will not display on your site.

Due to a Safari update entitled ITP 2.1, cookies gathered while using the Safari web browser expire after seven days rather than lasting the full two years.

If you want to maintain Klaviyo JavaScript but remove a cookie, there is one workaround. Toggle the Klaviyo tracking on and off by creating a new cookie, __kla_off, and running document.cookie = "__kla_off=true".

Using API to Access Cookies

Using API to access cookies is useful to check whether or not Klaviyo can identify a customer. You can do this by running JavaScript and typing in _learnq.isIdentified(). The response will then either be true or false.

Email to Website Tracking

When email to website tracking is enabled, Klaviyo identifies individuals that click through a Klaviyo email and browse your website. You can toggle on and off Klaviyo's ability to track email to website activity in your account's email settings.

9/20/21 Update: with the release of iOS 15, macOS Monterey, iPadOS 15, and WatchOS 8, Apple will change the way that we receive open rate data on your emails by prefetching our tracking pixel. With this change, it’s important to understand that open rates will be inflated.

If you have over 1,000 opens, we suggest moving to utilize click rate data as your engagement driver. It may also be useful to look at the number of iOS-specific users within your data to understand how your open rates will change.

For complete information on ways to potentially mitigate these Apple open changes, visit our iOS 15: How to Prepare for Apple’s Changes guide.

To navigate to your email settings page click Account > Settings > Email


When this is on, we add an additional parameter to all URLs in your emails to track activity. This is called the _kx parameter, and _kx will appear directly in the URL. The unique encrypted value is then decrypted by our web tracking and allows us to identify the user that clicked through the URL. 

To learn more, check out our article on Klaviyo web tracking.

Additional Resources

Was this article helpful?
42 out of 60 found this helpful