Storefront > Tools > Apps & Addons > Klaviyo
Overview
Klaviyo is an email marketing platform created for online businesses featuring robust email and marketing automation and powerful segmentation tools. A Klaviyo account is required for integration to work and can be registered at www.klaviyo.com.
By activating the Cart.com & Klaviyo Integration, you'll have the ease of sending post-order information such as products, order details of when orders are shipped, canceled, or refunded. Klaviyo also has the option to generate a JSON product feed every 6 hours.
How Klaviyo works
After a Klaviyo account is created for your business you can start to integrate the platform with Cart.com. On Cart.com, navigate to the Klaviyo integration page via Storefront > Tools > Apps & Addons > Klaviyo.
Here you will set the integration to active. In App Settings, you will be required to provide a Public API Key which can be found on the Klaviyo account settings page.
Copy the Public API Key from Klaviyo and paste it into the Public API Key field on the Klaviyo integration page of Cart.com.
Enabling the Tracking Script and Order Update options within App Settings will send the related data to Klaviyo for use.
How to Use Klaviyo
Catalog Feed
Your store catalog can be synced to Klaviyo by using custom catalog syncing:
- Set a file path name for the catalog feed in JSON through the Klaviyo integration page on Cart.com.
- Copy the feed file URL generated from your store.
- On Klaviyo, navigate to Profile > Settings > Web Feeds > Add Web Feed
- Paste the URL to the Feed URL field in Klaviyo.
- Click “Add Data Feed”
- The feed file URL should look like: https://website.com/catalog_feed.json
After your feed has been added as a catalog source, you can configure the mapping of the fields in the feed. Klaviyo will try and automatically map the fields in your feed based on their name, but if they do not automatically map you may need to set them yourself.
Note: To learn more or to add custom catalog feed features please contact Klaviyo support for more details.
Collect SMS Subscribers
Collecting SMS Subscribers requires setting up SMS and getting a private API key within your Klaviyo account: Setting Up SMS In Klaviyo.
Paste the private API key into your Klaviyo Private Key setting within your store's Klaviyo settings. Enable the 'Collect SMS Subscribers' setting and save the page.
The 'Add SMS Subscribers to List' dropdown will populate with your Klaviyo lists. When collecting SMS subscribers, they will be subscribed to one of the lists in your Klaviyo account. Klaviyo lists & segments can be set up here https://www.klaviyo.com/lists.
The SMS Opt-in Checkbox and SMS Consent Text fields control what your customers will see when they are asked to opt-in to SMS.
Please be aware that when collecting SMS consent you must include disclosure language for TCPA compliance. It is best practice to update the Terms of Service and Privacy Policy to include the terms of your SMS marketing program.
Learn more about SMS consent and compliance
The last step is to add the consent checkbox and consent text to the checkout page through the theme editor.
Go into your One Page Checkout Html Editor within theme editing and add the following markup near the shipping phone number field:
<ac:visibilityarea id="KlaviyoSMSOptInArea">
<div>$$KLAVIYOSMSOPTINCHECKBOX$$</div>
<div>$$KLAVIYOSMSCONSENTTEXT$$</div>
</ac:visibilityarea>
This adds the Subscribe to SMS consent checkbox and text as shown below.
Note: Consent is not marked as gathered until the order is completed and placed.