For the complete documentation index, see llms.txt. This page is also available as Markdown.

Klaviyo

To sync Shopify metafields with Klaviyo you need to create a "Private API Key" in Klaviyo

Setup Klaviyo sync in FieldsRaven

Save the Klaviyo credential

  1. Open Settings in FieldsRaven.

  2. Under Integration credentials, enter the Klaviyo private API key.

  3. Select Update integration credentials.

FieldsRaven never displays a stored integration credential. Leave the field blank on a later visit to preserve the current key; enter a nonblank value only when you want to replace it.

Enable Klaviyo on a Raven

When creating a customer Raven, toggle Sync with Klaviyo. Leave the Raven's API key field blank to use the shop credential from Settings.

Demo -> https://monosnap.com/file/DB1bRi7qixXvlVdVws37f4grQdJo1J

The sync job is queued 15 seconds after the metafield write, then runs subject to your shop's queue.

Sync Shopify metafield into Klaviyo customer profile

When you sync a metafield into Klaviyo's customer profiles, property name in Klaviyo will be the metafield's key in Shopify. For example if you're syncing this metafield customer.metafields.social_media_profiles.facebook then property name in Klaviyo will be facebook

Klaviyo customer property name screenshot
Klaviyo customer property name example

Sync Shopify JSON metafield into Klaviyo customer profile

When you sync a JSON type metafield, each property of the JSON object becomes a customer property in Klaviyo. Nested objects are flattened with an underscore (address_city), and arrays are numbered from 1 (tags_1, tags_2).

For example, this object:

Or this:

Becomes as follows in Klaviyo:

Sync Shopify JSON metafield into Klaviyo customer profile
Sync Shopify JSON metafield into Klaviyo customer profile

Nested JSON metafield

TBC

Syncing nested JSON metafield with Klaviyo
Syncing nested JSON metafield with Klaviyo
Syncing nested JSON with nested array with Klaviyo
Syncing nested JSON with nested array with Klaviyo

Array of JSON metafields

Syncing an array of objects with Klaviyo
Syncing an array of objects with Klaviyo

Last updated