Back to home

Script delivery

Klaviyo Webflow integration script

Download the latest connector, copy the hosted URL, or pin a version before adding it to Webflow custom code.

v1.3.015.2 KBRecently updated
Download latest

Installation

Copy into Webflow

Script tag
<script src="/api/script"></script>

For production, pin to a specific version when you want fully controlled release timing. Use the latest endpoint when you prefer automatic updates.

Pinned v1.3.0
<script src="/api/script/v1.3.0"></script>
Initialization
<script>
  document.addEventListener('DOMContentLoaded', function() {
    KlaviyoWebflow.init({
      publicApiKey: 'YOUR_KLAVIYO_PUBLIC_API_KEY',
      defaultListId: 'YOUR_KLAVIYO_LIST_ID',
      debug: false
    });
  });
</script>
Webflow form attributes
<!-- Add these custom attributes in Webflow -->
<form data-klaviyo-form data-klaviyo-list-id="YOUR_LIST_ID">
  <!-- Your form fields map automatically -->
</form>

Script details

File size
15.2 KB
Load strategy
Asynchronous
Dependencies
None
Browser support
Modern browsers
Klaviyo API
2025-04-15
CDN caching
1 year with version pinning

Version history

Version 1.3.0
Released: November 15, 2023
  • Version 1.3.0 released