---
title: Store connectors
description: Store connectors - MailPirate Docs
---

# Store connectors

Connectors keep MailPirate aligned with your shop: customers become profiles, products power blocks and recommendations, and orders drive events, RFM, replenishment, and revenue attribution.

## Supported platforms

In Connectors you can connect:

- **WooCommerce**
- **Shopify**

Both are available. Product copy elsewhere says **store**; platform names appear when you connect. Internal or private data sources never show up in this UI.

## Connect WooCommerce

1. Open **Connectors**.
2. Choose WooCommerce.
3. Enter **Store URL**, **Consumer key**, and **Consumer secret**.
4. Click **Connect**.

### Abandoned cart plugin (WooCommerce)

API sync brings customers, products, and orders. For **live** cart recovery, also install **MailPirate for WooCommerce**:

1. Download from the WooCommerce connection card on Connectors, or [/downloads/mailpirate-for-woocommerce.zip](/downloads/mailpirate-for-woocommerce.zip)
2. Upload/activate in WordPress
3. WooCommerce → MailPirate → paste Marketing API token (from **Settings → API & webhooks**) + store slug → enable tracking
4. Arm Autopilot → **Abandoned cart**

The same plugin places [signup forms](/docs/forms) via shortcode or the MailPirate Form block.

Full walkthrough: [Abandoned cart](/docs/abandoned-cart).

## Connect Shopify

1. Open **Connectors**.
2. Choose Shopify.
3. Enter shop domain (`mystore.myshopify.com`) and an **Admin API access token** that includes **`read_checkouts`** (for abandoned cart) plus customers/products/orders.
4. Optionally paste the app **client secret** (recommended for secure webhooks).
5. Click **Connect** - MailPirate sets up checkout webhooks for abandoned cart. Sync stays off until you start it.

Shopify abandoned cart uses Admin **checkouts** webhooks (`abandoned_checkout_url` → email CTA). Full walkthrough: [Abandoned cart](/docs/abandoned-cart).

## After you connect

Per connection you can:

- **Test connection** - preview newest contacts/products/orders and spot empty fields early
- **Sync** - pull now
- **Sync settings** - control what syncs and whether it runs on a schedule
- **Credentials** - update keys when they rotate

Sync is off when you connect. Click **Sync** to pull now, or turn on **Automatic scheduled sync** so MailPirate keeps catching up on a short schedule.

While a sync runs, the connection card shows live progress (contacts → products → orders) with imported / shop totals when the shop reports them, so the percent bar moves with real work. When the run finishes, the card summarizes only what that sync touched (e.g. “1 product · 2 orders”) - not the shop’s full catalog size. Large shops continue in the background in chunks; leave the Connectors page open to watch, or come back later.

You can **Stop sync** at any time (halts after the current chunk). **Reset & resync** deletes this connection’s synced customers, products, and orders, clears the cursor, and starts a full sync from scratch. Marketing profiles, campaigns, and flows stay; profiles may refresh when contacts/orders come back.

### Sync settings (typical)

Toggle what should sync:

- Contacts → profiles
- Products
- Orders → events
- Order line items

WooCommerce can map customer/order **meta keys** (one per line) into profile properties. Shopify connections do not use that meta-key list.

MailPirate does not store full shop API payloads on sync. Platform admins can enable **debug mode** (session-wide). While it is on, every app page shows an amber debug banner, and admin tools (such as fetch order JSON on Connectors) appear in matching amber panels.

Meta keys stay empty when you connect (nothing extra is pulled until you choose). On Sync settings, **Use recommended keys** adds a safe starter set without wiping keys you already typed:

| List | Recommended keys | Profile path |
|------|------------------|--------------|
| Customer | `_billing_vat` | `properties.meta` |
| Order | `_wc_order_attribution_source_type`, `_wc_order_attribution_utm_source`, `_wc_order_attribution_utm_medium`, `_wc_order_attribution_utm_campaign`, `_wc_order_attribution_device_type` | `properties.order_meta` (latest synced order) |

Add birthday or other checkout-field keys only when your shop actually stores them.

Large shops sync in chunks and can resume - you do not need to keep the browser open for the entire catalog.

## What sync unlocks

| Synced data | Unlocks |
|-------------|---------|
| Contacts | Profiles, list growth, consent baselines |
| Products | [Products](/docs/products) catalog, campaign product blocks, feeds, affinity anchors |
| Orders + items | [Orders](/docs/orders) list, RFM, LTV/churn heuristics, replenishment, revenue reports, post-purchase flows |

Without orders, Intelligence and Autopilot re-engage have much less to work with.

## Migrating from another ESP

Recommended order:

1. Connect and sync the shop.
2. Import **suppressions** before Autopilot (critical).
3. Optionally import subscribers you already have permission to email.
4. Activate starter flows / Autopilot programs.
5. Arm Autopilot only after suppressions are in.

## Migrating from Klaviyo

Klaviyo is a **one-shot migration**, not an ongoing connector card.

1. Connect WooCommerce or Shopify and let sync finish.
2. Open **Settings → Import**, choose the store and paste a Klaviyo **private API key**.
3. Run **full migration** (suppressions, then subscribers) - or suppressions / subscribers alone. Prefer suppressions before Autopilot.
4. Open **Autopilot**, enable the programs you want, arm it, and save.

## Troubleshooting

- Numbers empty on overview → confirm the right store is selected, then confirm the connection and last sync time
- Product search empty in campaigns or on **Products** → products sync enabled? Sync again
- **Orders** page empty → orders sync enabled? Sync again (line items need the order line items toggle)
- RFM empty → need paid/completed order history; scores refresh after orders sync (often overnight)
- Auth errors → rotate credentials in your shop, then update **Credentials** in MailPirate

## Related

- [Quick start](/docs/quickstart)
- [Intelligence](/docs/intelligence)
- [Autopilot](/docs/autopilot)
- [Profiles & consent](/docs/profiles)
- [Products](/docs/products)
- [Orders](/docs/orders)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://mailpirate.com/#organization","name":"MailPirate","legalName":"Jure Rožman s.p.","url":"https://mailpirate.com/","logo":{"@type":"ImageObject","@id":"https://mailpirate.com/#logo","url":"https://mailpirate.com/img/logo/mailpirate-logo.svg","contentUrl":"https://mailpirate.com/img/logo/mailpirate-logo.svg"},"image":{"@id":"https://mailpirate.com/#logo"},"description":"MailPirate is email marketing built for ecommerce stores: campaigns, automated journeys, living audiences, store sync, and deliverability control without managing mail servers yourself.","slogan":"Email that sells more for your store.","foundingDate":"2019-01-29","founder":{"@id":"https://mailpirate.com/#person-jure-rozman"},"address":{"@type":"PostalAddress","streetAddress":"Šinkov Turn 24A","addressLocality":"Vodice","postalCode":"1217","addressCountry":"SI"},"email":"info@mailpirate.com","telephone":"+38640504630","vatID":"SI72369213","identifier":[{"@type":"PropertyValue","propertyID":"AJPES registration number","value":"6881475000"}],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","email":"info@mailpirate.com","telephone":"+38640504630","availableLanguage":["English"]},"knowsAbout":[{"@type":"Thing","name":"Email marketing"},{"@type":"Thing","name":"Ecommerce automation"},{"@type":"Thing","name":"Email deliverability"}],"areaServed":["SI","EU","GB","US"],"sameAs":["https://www.linkedin.com/company/mailpirate"]},{"@type":"Person","@id":"https://mailpirate.com/#person-jure-rozman","name":"Jure Rožman","jobTitle":"Founder","worksFor":{"@id":"https://mailpirate.com/#organization"},"description":"Founder of MailPirate. Builds ecommerce email tooling focused on fair billing, automation, and deliverability.","url":"https://mailpirate.com/about-us","sameAs":["https://www.linkedin.com/in/jurerozman/"]},{"@type":"WebSite","@id":"https://mailpirate.com/#website","url":"https://mailpirate.com/","name":"MailPirate","inLanguage":"en","publisher":{"@id":"https://mailpirate.com/#organization"},"about":{"@id":"https://mailpirate.com/#software"}},{"@type":"SoftwareApplication","@id":"https://mailpirate.com/#software","name":"MailPirate","applicationCategory":"BusinessApplication","applicationSubCategory":"Email marketing","operatingSystem":"Web","url":"https://mailpirate.com/","description":"Ecommerce email platform for Shopify and WooCommerce stores: campaigns, flows, segments, intelligence, and dedicated sending with deliverability controls.","publisher":{"@id":"https://mailpirate.com/#organization"},"featureList":["Campaigns and reporting","Automated flows (welcome, cart recovery, win-back)","Segments and lists","Store connectors (Shopify, WooCommerce)","Intelligence (RFM, affinity, send-time, replenishment)","Deliverability scorecard and dedicated sending","Marketing API and embed forms"]}]}
```
