Shopify

Sync Data

Customising product data #

In Shopify, meta-fields and other attributes you create can be synced through my.clerk.io > System status > Data sync. Simply go to the input-field called Custom Attributes and type in the products attributes to include.

To add several attributes, separate them with commas.

Add attributes

Attributes should always be written using their key. This will usually be all lowercased. E.g. the attribute “Sizes” should be “sizes”. You do not need to include the namespace - Clerk will find it automatically based on the key.

In Shopify, you can often find these keys by finding your attribute in Settings > Custom data > Products/Variants:

Custom data

Sync subscribers #

Shopify supports managing subscribers directly in the platform. These can easily be synced with Clerk.io.

When activated, we will import that attribute “subscribed: true” for any email address that is subscribed in Shopify. This can then be used for Auto-Email.

Simply go to your my.clerk.io store, then System Status -> Data Sync and set Include Subscriber State to Yes. Then click Save and start a new sync.

If you want to use an unsubscribe link for customers, then each customer which is pulled from a Shopify backend has a unsub_url attribute which can be used for the auto email designs in the unsubscribe field: {{customer.unsub_url}}

Shopifys Webhook API version must be set to at least 2022-04, where this support was added. You can check this in the app you create for Clerk > Configuration > Admin API integration > Edit > Webhook subscriptions