Skip to main content
WooCommerce → AttentiveIntegration guide

Connecting WooCommerce to Attentive

WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. Attentive is SMS, where the identifier is a phone number, the consent rules are legal rather than advisory, and a mistake reaches the customer's pocket within seconds. The join between them succeeds or fails on one thing: whether the subscriber's phone number reaches the WooCommerce order before the conversion happens, because Attentive can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

WooCommerce to Attentive: order events keyed on a consented phone

A WooCommerce billing phone is not SMS consent; order events should enrich consented Attentive subscribers. Normalize phones to E.164, send the order from woocommerce_payment_complete with line items, and a separate event on completed for shipping texts. Use the order ID as an idempotency key against hook replays, and exit cart journeys on payment.

Attentive needs the phone number, and WooCommerce collects one in the billing field on most stores, but a phone typed at checkout is not SMS marketing consent. Consent comes from Attentive's sign-up units or a compliant checkout opt-in, and order events should enrich subscribers who already exist with that consent. Normalize the billing phone to E.164 before sending, since WooCommerce stores whatever the customer typed, spaces and all.

Check Attentive's integration directory for a current WooCommerce option and what it sends before building your own. A custom server build fires the order event from woocommerce_payment_complete with line items, so post-purchase and cross-sell journeys can branch on product, plus a separate event when the order reaches completed, so shipping texts do not go out before the box leaves.

The WooCommerce-specific hazard is status churn. Orders move between pending, on-hold, processing and completed, and on some gateways a retry or webhook replay fires the payment hook more than once. Use the order ID as an idempotency key in your own sender, because Attentive will not deduplicate and a repeat means a second text. Abandoned-checkout journeys need the reverse care: they must exit when the order is paid, or a customer is texted about a cart they already bought.

WooCommerce → Attentive · what breaks

Why this join usually fails — WooCommerce → Attentive

  1. 01

    The subscriber's phone number never reaches WooCommerce

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  2. 02

    Caching and optimization plugins eat the tracking

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  3. 03

    Consent state treated as a tracking detail rather than a legal one

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  4. 04

    Nothing reconciles afterwards

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

WooCommerce → Attentive · the fix

What working looks like — WooCommerce → Attentive

  • The subscriber's phone number on every order

  • Conversions arriving in Attentive

    The event lands on the subscriber, triggers the journeys that depend on it, and becomes available for segmentation.

  • Reconciled against the source

WooCommerce → Attentive · architecture

How WooCommerce and Attentive actually connect

  1. 1

    WooCommerce holds the truth

    You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.

  2. 2

    Attentive needs a click to match

    Attentive needs the subscriber's phone number, the event name and its properties. It also needs the subscriber to have consented — an event about someone who never opted in cannot legally be messaged, whatever the event says.

  3. 3

    The identifier is the bridge

    The subscriber's phone number, captured at the visit and carried into the WooCommerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  5. 5

    Deduplication at the destination

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

WooCommerce → Attentive · normal or broken

Working vs. broken, side by side — WooCommerce → Attentive

Normal, not a fault

  • The subscriber's phone number present on the order

  • Sent from the woocommerce_payment_complete hook

  • Deduplicated correctly

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

  • Reconciles with the source

Actually broken

  • The subscriber's phone number missing on most records

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  • Sent from the browser

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  • Counted twice, or not at all

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  • Nobody has reconciled it

WooCommerce → Attentive · diagnose

Diagnostic order — WooCommerce → Attentive

  1. 01

    Count orders carrying the subscriber's phone number

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order meta on ten recent orders

    Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.

  4. 04

    Verify that events for non-consented customers cannot trigger a send

    Check the journey's entry conditions, not the event pipeline. The pipeline will happily deliver an event about someone who never opted in; the journey is what must refuse to act on it.

  5. 05

    Read the match rate, not the success message

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

WooCommerce → Attentive · prove

How it gets proven — WooCommerce → Attentive

Source of truth

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

  • The subscriber's phone number confirmed present on a live order.
  • Events confirmed on subscriber records with consent state verified, and a test proving a non-consented profile does not trigger a send.
  • Order meta confirmed present on orders placed while full page caching was active.

WooCommerce → Attentive · free audit

What we check in the free audit

  • Count orders carrying the subscriber's phone number
  • Follow one real conversion end to end
  • Check order meta on ten recent orders
  • Verify that events for non-consented customers cannot trigger a send
  • Read the match rate, not the success message

Checked against

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

WooCommerce → Attentive · when not to buy

When you don't need this — WooCommerce → Attentive

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the subscriber's phone number.
  • If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
  • If you do not have a consented SMS list, the integration is the least of the work. Building the list compliantly comes first, and no event pipeline substitutes for it.

WooCommerce → Attentive · what we deliver

What gets built — WooCommerce → Attentive

  • Identifier capture into WooCommerce

    Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.

  • Event source: the woocommerce_payment_complete hook

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  • Dispatch to Attentive

    The Attentive events API, posted server-side from your order system with the subscriber's phone number and the event properties.

  • Reversals where they exist

    The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.

Written guarantee

95%+ tracking accuracy

Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WooCommerce → Attentive questions, answered

Check Attentive's integration directory for current WooCommerce support and what it sends. Otherwise, post order events server-side from the WooCommerce payment hook with the normalized phone number.

Free · 30 min

Get WooCommerce and Attentive joined properly

Free30 minutesNo obligation