Skip to main content

Sync contacts from Shopify

Connect your Shopify store so customers who accepted e-mail marketing arrive with their consent, unsubscribes stay in step, and you can segment on orders and spend.

Connect your Shopify store under Settings → Integrations and tweak.email keeps your contacts in step with it: customers who subscribed to e-mail marketing in your store become contacts with their consent record, unsubscribes in Shopify unsubscribe them here, and every synced contact carries their order count, total spend and last order, ready for segments such as "ordered in the last 90 days" or "never ordered".

The sync is included in every paid plan (Starter, Pro and Business) and during the free trial. Only team owners and admins can connect, change or disconnect it. One store per team.

Before you start: an app for tweak.email in your store

The connection uses an app that you create in your own Shopify account, for your own store. Nobody else gets access, and you can remove it in Shopify at any time.

Since 1 January 2026 Shopify makes new apps in its Dev Dashboard. If you made a custom app in the Shopify admin before that, you can use it instead; see An app you made before 2026.

  1. Sign in at dev.shopify.com with the account that owns your store. Under Apps, choose Create app, then Start from Dev Dashboard, name it (for example "tweak.email") and choose Create.

  2. On the app's Versions page, keep the suggested App URL, choose the newest Webhooks API version, and under Scopes add:

    • read_customers: names, e-mail addresses and e-mail marketing consent (required);
    • read_orders: order count, spend and last order (required);
    • write_customers: only if you want unsubscribes sent back to Shopify (see Unsubscribes back to Shopify).

    Choose Release.

  3. Shopify asks apps that read customers' names and e-mail addresses to say so. Under the app's Settings, open Access requests, choose Manage next to Protected customer data, select Customer data, and select the Name, Email and Address fields with your reasons. Save.

  4. Install the app on your store: choose Install app, pick your store and choose Install.

  5. Under the app's Settings, copy the Client ID and the Client secret.

Shopify changes these screens from time to time; its own guide to creating apps in the Dev Dashboard has the current labels.

An app you made before 2026

A custom app made in the Shopify admin (Settings → Apps and sales channels → Develop apps) keeps working. Make sure its Admin API access scopes include read_customers and read_orders (and write_customers for unsubscribes back), then copy two values from its API credentials tab: the Admin API access token (it starts with shpat_) and the API secret key.

Connect the store

  1. In tweak.email, go to Settings → Integrations.
  2. Enter your store's address ending in .myshopify.com. You find it in Shopify under Settings → Domains. Your own shop domain does not work here, only the myshopify.com one.
  3. Choose where you made the app, and paste the Client ID and Client secret (or the access token and API secret key).
  4. Choose the list synced customers go into. By default a new list named Shopify customers is created.
  5. Confirm that customers marked as subscribed in your store agreed to receive your marketing e-mail, and choose Check and connect.

Before anything is saved, we ask your store for its name with these credentials, check that the answer comes from the same myshopify.com store, and check that the app has the permissions it needs. If something is wrong, the page says what. The secret and the token are stored encrypted, and the secret is also used to check that every update really comes from your store.

The first sync then starts in the background. You can leave the page; Settings → Integrations shows its progress, the counts, and the last problem if there was one. A large store takes a while: Shopify limits how fast an app may read, and the sync waits whenever Shopify asks it to.

Who becomes a contact

Shopify records an e-mail marketing state for each customer. It decides who is added:

State in Shopify New to tweak.email Already a contact here
Subscribed Added as Active Kept as it is, and linked
Pending (waiting for Shopify's confirmation e-mail) Added as Pending. We send no confirmation e-mail of our own; Shopify sends its own Kept as it is, and linked
Not subscribed Not added Kept as it is, and linked
Invalid (Shopify marks the address as not valid) Not added Kept as it is, and linked
Unsubscribed Not added Unsubscribed and put on your suppression list, if they were active or pending

When a pending customer confirms in Shopify, their contact becomes Active.

The contact's consent record says Subscribed to e-mail marketing in your Shopify store (shopify in the export), with the date Shopify recorded the consent and, as the consent source, your store and Shopify's opt-in level (single opt-in, or confirmed opt-in when the customer clicked Shopify's confirmation link). See what each consent value means.

What Shopify never overrides in tweak.email:

  • An address that was erased at the person's request is never added back.
  • An address on your suppression list is never added.
  • A contact who unsubscribed or bounced here stays that way, even when Shopify says subscribed. If someone unsubscribed from your e-mails, ticking the box for them in Shopify does not re-subscribe them here; they can re-subscribe themselves from the link in any of your e-mails. The one exception: a contact who was unsubscribed here only because they unsubscribed in Shopify is subscribed again when Shopify reports them subscribed again.
  • A contact deleted here after unsubscribing or bouncing is not brought back.

Each new contact counts toward your plan's contact limit. When the limit is reached, the remaining subscribed customers are not added, and the settings page says how many. They are added by a later sync once there is room.

What is synced, and what is not

For each linked customer, tweak.email keeps:

  • e-mail address, first name and last name;
  • city and country from the customer's default address;
  • the e-mail marketing state described above;
  • the purchase fields below;
  • the customer's Shopify tags, only if you tick Copy customer tags from Shopify. Tags are only added: a tag removed in Shopify stays on the contact.

When Shopify has a name, city or country, it replaces the one stored here; an empty value in Shopify leaves yours alone.

Not synced: phone numbers, street addresses and postcodes, birthdays, notes, SMS consent, order details beyond the last order's product names, products and stock, and customers without an e-mail address. Abandoned carts and revenue per campaign are not available.

Purchase fields for segments

The sync adds five fields under Settings → Contact Fields and fills them on every linked contact. They work in segments and conditions and as merge tags like any custom field.

Field Merge tag Type What it holds
Shopify orders {{shopify_orders_count}} Number Number of orders, from Shopify's count for the customer (0 when they never ordered)
Shopify total spent {{shopify_total_spent}} Number Total spent, in your store's currency, as Shopify counts it
First Shopify order {{shopify_first_order_at}} Date Date of the first order (see below)
Last Shopify order {{shopify_last_order_at}} Date Date of the most recent order
Products in last Shopify order {{shopify_last_order_products}} Text Names of up to five products in the most recent order

Examples:

  • Bought in the last 90 days: Last Shopify order is in the last 90 days.
  • Spent over 1,000 kr: Shopify total spent > 1000 (in your store's currency).
  • Never ordered: Shopify orders = 0. Contacts who are not Shopify customers at all have no value; add a second condition, Shopify orders is empty, with any to include them too.

Shopify lets an app see only the last 60 days of orders unless the app has the read_all_orders permission, which Shopify grants on request. The order count and total spent always cover the whole history. The first order date is filled in when the whole history is visible: always with read_all_orders, and otherwise for customers with one order or whose customer account is less than 60 days old. The last order date and products are those of the most recent order the app can see.

Staying in step

  • Live updates: when you connect, we ask Shopify to tell us when a customer is created, changed or deleted, when an order is placed or paid, and when the app is uninstalled. A change usually arrives within a minute or two. Each update is checked against your app's secret, and a repeated delivery is applied only once.
  • Daily sync: once a day, every customer changed since the previous sync is read again, to catch anything an update missed. Sync now starts one straight away. A sync that stopped part-way continues from where it stopped.
  • A customer deleted in Shopify: the link is removed and the contact stays.
  • A data deletion request from Shopify: if Shopify asks the app to delete a customer's data, the contact with that address is erased in this team, as an erasure made here would.
  • The app uninstalled in Shopify: the sync stops, the stored credentials are deleted, and the settings page says so.

Sequences

The first sync and the daily sync start no sequences, so your existing customers do not all get a welcome series, the same as an import. A new subscriber who arrives through a live update does start your signup-triggered sequences, including ones limited to the list synced customers go into, and tags copied by a live update start tag-triggered sequences. To greet only new shop subscribers, limit a signup sequence to that list. See Sequences.

Unsubscribes back to Shopify

Tick Send unsubscribes back to Shopify (it needs the write_customers permission) and when a synced contact unsubscribes from your e-mails here, through the unsubscribe link, the preference page or a spam complaint, or is marked unsubscribed through the API, we mark the customer as unsubscribed from e-mail marketing in Shopify too. This happens in the background a moment after the unsubscribe, which is saved here first and never waits for Shopify. If Shopify cannot be reached, we try again for several hours, and the settings page shows it if we give up.

Bounces, addresses your team adds to the suppression list by hand, a status a team member changes on the contact page, and someone leaving one list while staying on others are not sent to Shopify.

Disconnect

Choose Disconnect under Settings → Integrations. We remove our live updates from your store (when the store can still be reached) and delete the stored credentials and the links between customers and contacts. Your contacts, their fields and their lists stay. You can also remove the app in Shopify, which stops the connection from that side.

Your data

Your Shopify store is your own system, and you decide what it holds. The connection copies the customer data listed above into tweak.email, where we process it for you exactly like contacts you import, under our Data Processing Agreement, which applies from the moment you sign up. The online-store connection and the purchase summary are named in sections 2 and 3 of the DPA from version 1.6, in force from 24 December 2026. It reads from your store with your app's credentials. The only changes it makes in your store are the unsubscribes you choose to send back, and setting up and removing the live updates.

Sensitive products. The product names of a customer's last order can reveal special categories of personal data under the GDPR, for example health products, or religious or political items. The DPA does not allow such data to be processed through the connection: do not connect a store whose product names can reveal it.