MARKETING

Track Recovered Carts and Attribute the Winning Channel

When a previously abandoned Stripe checkout finally converts, marks the cart recovered and records which re-engagement channel earned the sale for attribution.

CategoryMarketing
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerStripe checkout.session.completed webhook firesStripeStripe
  • ActionLook up contact and abandonment history in HubSpotHubSpotHubSpot
  • LogicStop if no prior abandonment; else compute recovery metrics
  • ActionMark contact recovered and stamp attributed channelHubSpotHubSpot
  • OutputAppend recovery record to Postgres attribution tablePostgreSQLPostgres

What it does

Closing the loop on recovery, this workflow listens for completed Stripe checkouts, matches them against carts that were previously abandoned, and records the recovery: which channel touched the shopper last, time to recover, and revenue saved. It keeps a clean attribution ledger so you know which re-engagement tactic actually works.

When to use it

Use it once you run abandoned-cart email or ad recovery and need to prove ROI. It answers the question every marketer asks: did the discount email or the retargeting ad bring them back, and how much did each save?

How it works

  1. 1A Stripe `checkout.session.completed` webhook fires on a successful purchase.
  2. 2The flow looks up the contact in HubSpot to see if they were previously flagged abandoned.
  3. 3A logic step stops if there is no prior abandonment, otherwise computes time-to-recover and reads the last re-engagement channel touched.
  4. 4The flow updates the HubSpot contact: clears the abandoned flag, sets `recovered_at`, and stamps the attributed channel.
  5. 5The recovery record (revenue saved, channel, latency) is appended to a Postgres attribution table for reporting.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect StripeCustomers, subscriptions, payments.
  2. 2
    Connect HubSpotCRM, deals, marketing, support.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.