Klaviyo tag for Google Tag Manager Server Side

Klaviyo Tag for the Google Tag Manager server container allows you to add new users, send events and parameters from your site to Klaviyo.
Klaviyo tag for sGTM communicates directly with Klaviyo API and allows adding contacts using sGTM that was previously possible only through the backend integration.

Getting started

  1. Add Klaviyo tag to the server Google Tag Manager from the template gallery.
  2. Add Klaviyo Public API Key.
  3. Select the action type you want to track.
  4. Add contact email, event and contact properties.

A more detailed description of how to set up the Klaviyo tag in the sGTM can be found at this link.

Supported events

  • Add a new contact to Klaviyo
  • Update an existing contact information
  • Track contact activity on-site
  • Send events and parameters

Open Source

Klaviyo Tag for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.

GTM Gallery Status

:green_circle: Listed

stape-io/klaviyo-tag — updated: view commit

  • Removed all logging functionality, including log settings and console log outputs
  • Updated API revision version constant to ‘2026-04-15’
  • Simplified consent check logic to immediately return success if consent is not given or not required

GTM Gallery Status

:green_circle: Listed

stape-io/klaviyo-tag — updated: view commit

  • Added “Add Property” buttons to custom property fields
  • Updated Klaviyo API version to 2026-07-15
  • Added Klaviyo Exchange ID detection from URL parameters, cookies, and __kla_id
  • Added consent handling and protection against duplicate server-side measurement requests
  • Added error logging and failure handling when no user identifier is available

GTM Gallery Status

:green_circle: Listed