← All plugin documentation

RetainRocket – Automation & Retention for WooCommerce

Guide for version 1.0.2 · WordPress 6.4+ · WooCommerce 8.0+ · PHP 7.4+

RetainRocket sends the right message at the right time, automatically. You build workflows from three parts: a trigger (what starts it, such as “basket abandoned” or “order completed”), optional rules (who it’s for), and actions (what happens, such as sending an email). Each workflow can run straight away or after a delay.

Email workflows, abandoned baskets and the reports are free. Text messages, browser notifications, webhooks, the birthday and subscription triggers, and manual runs need RetainRocket Pro.

1. Install and activate

  1. Go to Plugins → Add New → Upload Plugin, choose the RetainRocket zip and click Install Now, then Activate. WooCommerce must be active.
  2. If you bought Pro, paste the licence key from your purchase email when asked and click Activate License. You can change it later from the Change License link on the Plugins screen.
  3. Open WooCommerce → RetainRocket. The tabs across the top are Dashboard, Workflows, Add workflow, Logs, Queue, Carts, Customers, Settings and Tools.

Delayed messages, abandoned-basket checks and daily triggers run in the background through WooCommerce’s built-in scheduler. On a quiet site, ask your host to set up a real cron job so they run on time.

2. Your first workflow

  1. Open the Add workflow tab and pick a ready-made workflow, or click Start from scratch.
  2. Ready-made workflows are created switched off, so you can check the wording first. Change the subject and message to suit your shop.
  3. Click Preview to see the email with real details from your shop, or Send test to email it to yourself.
  4. Click Save and turn on. Save (off) keeps it switched off. On the Workflows tab, click Active or Off to switch a workflow on or off at any time.
Ready-made workflowWhat it does
Abandoned cart: reminder after 1 hourShows the items left in the basket with a link that puts them back.
Abandoned cart: last chance with a coupon (24 hours)A personal 10% code valid for 48 hours. Create a coupon called CART10 first (see Personal coupons).
Thank you for your first orderA personal-looking thank-you an hour after a first paid order.
Ask for a review 7 days after deliveryReview links for each product, a week after the order is completed.
Win back customers after 60 daysA personal 15% code for customers who haven’t ordered for 60 days. Needs a WINBACK coupon.
Tag VIP customers at £500 spendAdds a VIP tag and says thank you.
Failed payment follow-upA link to pay again, an hour after a payment fails.
Welcome new account holdersA hello with your featured products.
Tell me about big ordersEmails you about paid orders over 250.
Birthday coupon (Pro)A code on the customer’s birthday. Needs a BIRTHDAY coupon and the birthday field turned on.

3. Triggers

GroupTriggers
OrdersOrder created · Order status changes (from / to any statuses you choose) · Order pending, processing, on hold, completed, cancelled, refunded or failed · Order paid (once, when payment completes or the order moves to a paid status) · Product purchased (once per matching product in a paid order) · Order note added
CustomersCustomer account created · Order count reaches (for example 1 for a first order) · Total spend reaches · Win-back (last order exactly X days ago, checked daily) · Opts in · Unsubscribes · Product review posted (with an optional minimum rating) · Birthday (Pro)
CartsCart abandoned · Cart abandoned (registered customers) · Cart abandoned (guests)
Subscriptions (Pro, needs WooCommerce Subscriptions)Subscription created · Status changes · Renewal paid · Renewal failed · Renews soon (X days before)
Manual (Pro)Existing orders · Existing customers. These never run by themselves: run them from the Tools tab.

Order events run in the background, so checkout stays fast. A delayed “status changes” workflow checks the status again before it runs, so a reminder isn’t sent if the order has moved on.

4. Rules

Rules decide who a workflow is for. Rules in a group must all match (“and”). Add another group with + Add rule group (or) to allow a second set of conditions. With no rules, the workflow runs every time its trigger fires. Rules are checked when the trigger fires and again just before a delayed run.

AboutRules
The orderTotal, item count, status, products, product categories, payment method, delivery method, billing and delivery country, coupon codes, is the customer’s first order, created via (checkout, admin…), is a recovered basket
The customerOrder count, total spent, days since last order, role, is a guest, tags, country, email, has bought these products, has opted in, allows browser notifications, accepts marketing texts, times this workflow has run for them
The basketTotal, item count, products, product categories, coupon codes
Product, review, subscriptionProduct and its categories · review rating · subscription status and products

Rules that need something the trigger doesn’t provide (for example a basket rule on an order trigger) are greyed out.

5. Actions

ActionNotes
Send emailTo one or more addresses (variables allowed). WooCommerce email style or a plain, personal-looking style. Subject, heading, preview text and an optional reply-to address.
Send text message (SMS) (Pro)See Text messages.
Send browser notification (Pro)See Browser notifications.
Add order notePrivate, or a note to the customer (which emails them).
Change order status · Update order meta · Resend a WooCommerce order emailFor order triggers.
Add / remove customer tagsComma-separated. Use tags in other workflows’ rules.
Change customer role · Update customer metaAdministrator accounts and roles are protected.
Cancel queued workflows for this customerFor example: when someone buys, stop the rest of a win-back series.
Send webhook (Pro)POST, GET or PUT to another app. Write your own JSON with variables, or leave it empty to send the standard customer, order and basket details.
Change subscription status (Pro)Needs WooCommerce Subscriptions.

Actions run in order. Use the arrows to reorder them.

6. Timing and the queue

  • Immediately: as soon as the trigger fires.
  • After a delay: minutes, hours, days or weeks later.
  • After a delay, at a set time of day: for example 7 days later at 10:00, only on weekdays you tick. Times use your shop’s time zone.
  • On a fixed date: a date and time you choose.

Delayed runs wait in the Queue tab, where you can run one now or delete it. Just before a queued run, RetainRocket checks again that the workflow is on, the rules still match and the customer hasn’t unsubscribed.

In the workflow’s Options box you can also limit how many times it runs per customer (0 = no limit), turn open and click tracking on or off, and add a Google Analytics campaign name (UTM tags) to links.

7. Writing emails and variables

Variables fill in details when the email is sent. The Variables box beside the editor lists the ones your trigger supports; click one to copy it. Add a fallback for when a value is empty:

Hi {{ customer.first_name | fallback: 'there' }},
GroupExamples
Customer{{ customer.first_name }}, last_name, full_name, email, phone, order_count, total_spent, tags, unsubscribe_url, generate_coupon
Order{{ order.number }}, date, total, status, items (a table), item_names, review_links, billing_address, shipping_address, payment_method, view_url, pay_url, billing_country (and other address parts), meta | key: '_my_key'
Basket{{ cart.link }} (puts the basket back), items, total, item_count
Product, review{{ product.title }}, url, price, image, review_url, add_to_cart, sku · {{ review.rating }}, content
Subscription{{ subscription.next_payment_date }}, status, total, view_url, items
Shop{{ shop.title }}, url, shop_url, current_year, and a product grid: {{ shop.products | type: 'best_selling', limit: '4' }} (types: featured, sale, best_selling, recent, category with category: 'slug', ids with ids: '1,2,3')

RetainRocket uses the same variable format as AutomateWoo, so imported emails keep working.

8. Personal coupons

Create a normal WooCommerce coupon to use as a template (for example CART10, 10% off). Then put this in an email:

{{ customer.generate_coupon | template: 'CART10', expires: '2', prefix: 'BACK' }}

Each email then gets its own code, such as BACK-7KQ4M2XP, copied from the template’s settings. It can be used once, only by that customer’s email address, and expires after the number of days you give. Add restrict: 'no' to let anyone use it, or limit: '3' to allow more uses. Unused generated codes are deleted 30 days after they expire. Previews and test emails show a sample code without creating one.

9. Abandoned baskets

  • Baskets are saved for signed-in customers, and for guests as soon as they type their email at checkout (classic and block checkout).
  • A basket counts as abandoned when it hasn’t changed for the time set in Settings (15 minutes by default). This fires the “Cart abandoned” triggers.
  • If the shopper comes back and changes their basket, any waiting reminders are cancelled and the clock starts again. If they order, reminders are cancelled and the basket is marked recovered.
  • The {{ cart.link }} link puts the items and coupons back and opens the checkout (or the basket, if you prefer, in Settings).
  • The Carts tab lists active, abandoned, recovered and lost baskets, with a Copy restore link button.

11. Text messages (Pro)

Choose a provider in Settings → Text messages (SMS). Only that provider’s boxes are shown.

ProviderWhat you need
TwilioAccount SID, auth token, and a Twilio number or a sender name (up to 11 letters).
EsendexLogin email, API password (from esendex.com/profile), account reference, and optionally a sender name or number.
The SMS WorksThe JSON Web Token from the API Key tab, and a sender name or number.
Android phone: textbeeThe textbee app on a spare Android phone, and its API key (optional device ID).
Android phone: SMS Gateway for AndroidThe app on a spare Android phone, its username and password, and optionally your own server address.

Phone options suit small numbers of texts. The phone must stay on and online, and mobile networks may block a SIM used for bulk business texting. Use a provider for big campaigns.

In a workflow, add Send text message (SMS). To defaults to {{ customer.phone }}. Local numbers such as 07700 900123 are turned into international format using the order’s billing country. The counter under the message shows the characters and how many texts each message will be billed as. A curly apostrophe or an emoji cuts each text to 70 characters, and the counter tells you which characters are doing it.

Consent for texts

  • Marketing texts go to: the same people as marketing emails unless they stop texts, or only customers who ticked the text-message box.
  • Turn on the text-message opt-in box for checkout and My Account under the same settings.
  • Marketing texts end with “Reply STOP to opt out.” When you send from a sender name (which can’t receive replies), or choose Always a short opt-out link, they end with a short link instead.
  • Stopping texts doesn’t unsubscribe someone from emails, and the other way round.

STOP replies

Settings shows a webhook address for your provider, with instructions. Once it’s connected, a customer who replies STOP stops getting marketing texts, and START turns them back on. Twilio, textbee and SMS Gateway for Android sign their messages; the other addresses contain a secret key. For Esendex, ask your account manager to send “inbound” and “stop” events to the address.

12. Browser notifications (Pro)

Turn on Settings → Browser notifications → Offer browser notifications. Shoppers with items in their basket then see a small “Want a reminder if you leave items in your basket?” box. If they say yes, add Send browser notification to a workflow (for example the abandoned cart one): a title, a message and a link ({{ cart.link }} by default).

  • There’s no cost per message, and no outside notification service to sign up for.
  • It works in Chrome, Edge and Firefox on computers and Android. On iPhone it only works if the shopper has added your site to their home screen.
  • Shoppers can allow notifications before giving their email. When they type it at checkout, their notifications and basket move to their customer record.
  • Your site must use HTTPS.

13. Dashboard, logs and conversions

The Dashboard shows, for the last 7, 30, 90 or 365 days: conversions and their revenue, baskets recovered, emails sent with open and click rates, workflow runs, abandoned baskets, queued runs and unsubscribed customers.

A conversion is a paid order placed within the conversion window (14 days by default) after the customer clicked a link in a workflow message. Turn this off per workflow in its Options box.

The Logs tab lists every run, with what it was for (order, basket, product), the result and its details, and whether the message was opened, clicked and converted. Filter by workflow or show only problems.

14. Tools and importing from AutomateWoo

Import from AutomateWoo

Tools → Import from AutomateWoo copies your AutomateWoo workflows and its unsubscribes and opt-ins. Workflows arrive switched off, so nothing sends twice. The report lists anything without a match yet (for example AutomateWoo’s “variable date” timing, which runs immediately in RetainRocket). Running the import again skips workflows already imported. Turn the RetainRocket workflows on as you turn the AutomateWoo ones off.

Run on past orders or customers (Pro)

Create a workflow with a Manual trigger and switch it on. In Tools, choose it, then a date range for orders (paid orders only, if you like) or a tag for customers. Up to 1,000 run or are queued at a time, following the workflow’s rules, limits, timing and consent.

Run background jobs now

Buttons to process the queue, check for abandoned baskets and run the daily triggers straight away. Useful when testing.

15. Settings

SectionSettings
SenderFrom name and address (empty = your WooCommerce email settings).
Consent and unsubscribesSoft opt-in or strict opt-in, opt-in boxes at checkout and in My Account, the box’s wording and the unsubscribe footer ({{ unsubscribe_link }} becomes the link).
Abandoned cartsMinutes before a basket counts as abandoned (15), saving guests’ baskets, where restore links go (checkout or basket), days before abandoned baskets count as lost (30).
TrackingOpen and click tracking, the conversion window (14 days) and how long logs are kept (365 days).
BirthdaysAsk for a birthday (day and month) at checkout and in My Account. Classic checkout only for now; block-checkout customers can add it in My Account.
Text messages (SMS)Provider and its details, STOP reply webhook, opt-out line, who gets marketing texts, the text opt-in box.
Browser notificationsOffer notifications, the question shoppers see and the notification icon.

16. For developers

Filters to add your own building blocks: retainrocket_triggers, retainrocket_rules, retainrocket_actions, retainrocket_presets, retainrocket_variable_catalog and retainrocket_variable_value (return a value for your own {{ type.field }}). Fire a workflow from your own trigger with:

RetainRocket_Runner::fire( 'my_event', array( 'customer' => $customer, 'order' => $order ) );

Other filters: retainrocket_should_run, retainrocket_rule_result, retainrocket_email_headers, retainrocket_webhook_payload, retainrocket_sms_providers with retainrocket_sms_send and retainrocket_sms_configured (your own text provider), retainrocket_push_hosts and retainrocket_sample_data. Actions: retainrocket_after_workflow_run, retainrocket_cart_recovered, retainrocket_coupon_generated, retainrocket_customer_opted_in, retainrocket_customer_opted_out, retainrocket_customer_sms_opted_in and retainrocket_customer_sms_opted_out.

17. Questions

My delayed emails are late.

The background scheduler runs when people visit your site. On a quiet site, set up a real cron job with your host, or use Tools → Process the queue to send due messages now.

A marketing email didn’t send to a customer.

Check the Logs and the Customers tab. They may have unsubscribed, or (in strict opt-in mode) never opted in. Mark the workflow Transactional only if it’s genuinely about their order or account.

Why didn’t an abandoned basket email go to a guest?

Guests are only known once they type their email at checkout. Before that there’s no address to write to; with Pro, browser notifications can still reach them.

Does it work with HPOS and the block checkout?

Yes. It supports High-Performance Order Storage and the Cart and Checkout blocks, including guest email capture and the opt-in boxes.

Emails aren’t arriving at all.

Send yourself a test from a workflow. If that fails too, your site can’t send email: install an SMTP plugin or use your host’s email service.