Shopify

Sync Data

Customising product data #

In Shopify, attributes can be added through my.clerk.io->Data Sync.

Simply go to the input-field called Custom Attributes, and type in the attributes you want to include for products.

To add several attributes, simply separate them with commas.

Attributes should always be written as their short-versions. This will usually be all lowercased. E.g. the attribute “Sizes” should be “sizes”.

Orders with pre- and suffixes #

Shopify has released a new feature that allows you to add any characters before and after the original Order ID’s. This also means that the tag used to track these ID’s have changed.

As of October 9th 2020, this new way of tracking is included per standard in our Setup Guide. If you started using Clerk.io after this date, it will already work correctly for you.

If you are not tracking the correct ID’s in Tracked Orders it’s its easy to solve.

1. In you Shopify backend, go to Settings -> Checkout

2. Scroll down to Additional Scripts

3. Find data-sale in the tracking-code and replace order_number with order_name, then click Save:

Once you have done this, you will start seeing the Order ID’s being tracked including Pre- and Suffixes in Tracked Orders:

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