Product

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
  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 via shortcode or the MailPirate Form block.

Full walkthrough: 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.

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 catalog, campaign product blocks, feeds, affinity anchors
Orders + items 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