Free ON WEBFLOW.IO DOMAINS
Create a Klaviyo Profile
Method
Utility
Creates or updates a Klaviyo profile and adds it to a list.
Shopify Storefront data and cart logic is bound to your Webflow elements through Shopyflow attributes. Connecting your Webflow site to Shopify is done by adding custom attributes to your Webflow elements.
Yet, you are not required to type or edit attributes manually. Shopyflow provides you with the pre-configured components needed to create your store, as copyable Webflow elements right in Webflow designer.
All the copyable Shopyflow Components are native editable Webflow elements. There is no layout or styling limitation on any element.
In the below image hover your mouse on the hotspots to see all the required Shopyflow attributes to build a product page like this in Webflow

Custom Attributes
sf-add-to-cart="1"
Custom Attributes
sf-change-quantity="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-cart-count="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-product="{Product ID}"
Custom Attributes
sf-show-image="1"
Attribute Name
window.Shopyflow.tracking.createKlaviyoProfile()
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Methods
>
Create a Klaviyo Profile
Method
window.Shopyflow.tracking.createKlaviyoProfile()
<script>
/**
* Creates or updates a Klaviyo profile and adds it to a list
*
* @param {Object} data - Profile data to send to Klaviyo
* @param {string} data.listId - Klaviyo list ID to subscribe the user to
* @param {string} data.email - User's email address (required)
* @param {string} [data.first_name] - (Optional) User's first name
* @param {string} [data.last_name] - (Optional) User's last name
* @param {string} [data.phone_number] - (Optional) User's phone number
* @param {Object} [data.properties] - (Optional) Additional custom properties
*
* Note: listId and email are required fields.
*/
const data = {
listId: 'zuxjdfk',
email: 'user@email.com',
first_name: 'Jane',
last_name: 'Doe',
phone_number: '+4915702855932',
properties: {
'Favourite color': 'Red',
'Interested': true
}
};
window.Shopyflow.tracking.createKlaviyoProfile(data);
</script>Class name
window.Shopyflow.tracking.createKlaviyoProfile()
Target elements
Can be placed anywhere in the site
Methods
Webflow app usage
Webflow app settings
Inner components
Module contents
Available methods
No items found.
Method
contents
No items found.
State management
No items found.
Related Utilities
No items found.
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.