Klaviyo

Klaviyo

Email marketing and automation platform for e-commerce brands. Klaviyo scripts track page views, product interactions, and cart events to trigger automated email and SMS flows. Sets cookies to identify visitors and link on-site behavior to email campaign engagement.

Overview

Klaviyo is an email and SMS marketing automation platform widely used by e-commerce brands. Its on-site scripts track visitor behavior, product interactions, and cart activity to trigger automated email and SMS flows. Klaviyo connects on-site browsing data to email subscriber profiles, enabling personalized marketing campaigns based on real-time behavior.

What This Script Does

Klaviyo's JavaScript snippet (klaviyo.js) loads on every page and performs several operations:

  • Visitor identification: Sets a first-party cookie (__kla_id) containing an encoded visitor identifier. If the visitor is a known email subscriber, the cookie links browsing activity to their Klaviyo profile.
  • Page and product tracking: Sends Viewed Product, Added to Cart, and Started Checkout events to Klaviyo's servers in real-time. These events include product names, prices, URLs, and image paths.
  • On-site forms: Renders email/SMS signup forms, popups, and flyouts configured in Klaviyo's dashboard. Form submissions create or update subscriber profiles.
  • Back-in-stock and browse abandonment: Monitors product page visits and cart state to trigger automated flows when a visitor leaves without purchasing.
  • Active on Site tracking: Sends periodic heartbeat requests to track session duration and active browsing.

The script makes requests to a.]klaviyo.com and static.klaviyo.com. It reads and writes to localStorage for form display state and suppression logic. It may also fire identify calls when a visitor clicks through from a Klaviyo email (via URL parameters like _kx).

Consent & Compliance

Consent Category: Marketing / Analytics

Klaviyo's tracking serves dual purposes: behavioral analytics for campaign optimization and direct marketing automation (email/SMS triggers). The visitor identification cookie and behavioral event tracking constitute personal data processing under GDPR. Key considerations:

  • GDPR/ePrivacy: The __kla_id cookie and behavioral tracking require opt-in consent. Klaviyo's forms that collect email addresses are separate consent touchpoints requiring explicit marketing consent.
  • CCPA: Behavioral data linked to email profiles constitutes personal information. Disclosure is required, and consumers must be able to opt out of sale/sharing.
  • Email identification via URL parameters: When a subscriber clicks a Klaviyo email link, the _kx parameter automatically identifies them on-site. This cross-context identification requires consent under GDPR.

Klaviyo provides a consent API that can delay tracking until consent is granted. Use klaviyo.push(["consent", "email"]) to gate identification.

Should You Block This Without Consent?

Yes. Klaviyo's on-site script sets identification cookies, tracks individual browsing behavior, and links activity to marketing profiles. This constitutes personal data processing for direct marketing purposes. Block the script until the user grants marketing consent. If you need Klaviyo signup forms to function, configure them to load independently of the tracking script, or use Klaviyo's consent API to defer behavioral tracking until consent is obtained.

Is Klaviyo GDPR compliant?

Klaviyo typically loads marketing and analytics trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Klaviyo can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Klaviyo, not on Klaviyo itself.

Visit website

Products (1)

Consent Categories

Also Known As

klaviyo GDPRklaviyo cookiesklaviyo tracking pixelemail marketing consentklaviyo SMS consentklaviyo privacy

Industries

Business and Consumer ServicesMarketing and Advertising

Tracked Domains (1)

Klaviyo's trackers are common, seen on about 4% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.

klaviyo.comMarketing

klaviyo.com is a marketing domain operated by Klaviyo, used to serve ads, build audiences, and measure ad conversions. Seen on about 4% of scanned sites.

Cookies Klaviyo Sets (1)

__kla_id

Klaviyo visitor identifier set on the customer apex by the Klaviyo onsite JavaScript. Two-year expiration.

Frequently Asked Questions

Related Vendors

DeepIntent
DeepIntent
Healthcare programmatic advertising platform using clinical and claims data to target healthcare professionals and patients. DeepIntent scripts fire impression pixels on health content sites and track behavioral engagement for pharmaceutical advertising campaigns.
Kargo
Kargo
Kargo is a mobile-first advertising platform specializing in high-impact ad formats for premium publishers. Scripts serve attention-capturing mobile ad units and measure real engagement metrics beyond standard click-through rates.
Taboola
Taboola
Content discovery and native advertising platform that serves sponsored content recommendations at the bottom of articles on major publisher sites. The Taboola widget script loads a feed of paid content links and fires impression and click events for campaign reporting.
eyeota
eyeota
Audience intelligence and cross-device targeting platform. eyeota collects behavioral and demographic audience segments from publisher sites and makes them available for programmatic targeting. Scripts fire on publisher pages to classify visitors into interest-based categories.
Reddit
Reddit
Embedding and social sharing platform primarily known for Reddit's comment embed and advertising pixel. The Reddit Pixel tracks page views, custom events, and purchase conversions on advertiser sites to enable retargeting and lookalike audience building on Reddit's ad platform.
Twitter
Twitter
Twitter's (X's) advertising pixel tracks site visitor behavior and fires conversion events for campaigns running on the platform. The Universal Website Tag logs page views, custom events (purchases, signups), and audience membership. The embedded Tweet button also loads tracking scripts even when not clicked.

Manage consent for Klaviyo

ConsentStack automatically detects and manages Klaviyo trackers so your site stays compliant with global privacy regulations.