How-to guide

Sales from automation rules

See the orders and revenue each automation rule's posts bring to your store, and what SemPost reads from your store's orders to show them.

Every link in an automation post names its rule and the post in its campaign tags. When you switch on sales measuring for a store, SemPost reads that store's orders and shows, on each rule's page, the orders and revenue that came through the rule's links. You see which rules sell, not only which ones get likes.

Measuring works for a WooCommerce store connected with a REST key and for a Shopify store connected with your own app, once that app may read orders. For a store connected through the SemPost app from the Shopify App Store, the rule's page says that sales come with a later version of the app.

Switch on measuring

Open the rule

On the Automation page, open a rule that posts products from your store. Its page has a Sales from this rule section.

Start measuring the store

Press Measure sales in this store. The window says what SemPost reads and keeps. Press Start measuring.

Wait for the first reading

The first reading comes within a few minutes and goes back up to 60 days. After that, SemPost reads the store's orders about once an hour. Measuring counts for every rule that uses the store.

Owners and admins switch measuring on and off; everyone in the workspace sees the figures.

What you see

  • Orders, Revenue and Posts that went out for the last 7, 30 or 90 days.
  • By network and Posts that brought the most orders, with Open the post for each.
  • The campaign name the rule's links carry, to look up in your store's reports or in Google Analytics, and when the store was last read.
  • On the Automation page, each rule's card sums up its last 30 days in one line.

Revenue is the order total with tax and shipping, less refunds, in the store's currency. Currencies aren't converted.

Which orders count

An order counts for a rule when the visit before it came through one of the rule's links and it was placed within 30 days after that post went out. If the last visit came from another campaign, such as an ad, the order isn't put down to SemPost. Cancelled and unpaid orders and orders refunded in full don't count; a partial refund lowers the revenue.

A store's test orders count only on posts verified in test mode, so you can try the whole path before you go live. WooCommerce doesn't mark test orders, so cancel a test order once you're done: it drops out at the next reading.

Instagram and TikTok posts carry no link, so nothing can come through them; on Instagram and Facebook, a Comment to DM message can carry the link.

What SemPost reads and keeps

For each order that came through a rule's link, SemPost keeps the store's ID for the order, when it was placed, its total, refunds and currency, whether it was a test order, the network and the campaign tags. It never asks for the customer's name, address, email address or phone number, or for the products ordered. The records are kept for 400 days, and SemPost's Privacy Policy describes them in full. If sales measuring is closed for your workspace, its records are deleted too.

Stop measuring

At the bottom of the section, press Stop measuring and confirm with Stop and delete. SemPost stops reading the store's orders and deletes the ones it read, for every rule that uses the store.

Shopify with your own app

Your app needs the read_orders permission. Connecting works without it; the Connect a store dialog lists it under Optional, for sales from automation rules:.

  1. In the Shopify Dev Dashboard, open your app's Versions, add read_orders to its scopes and release the version. Add it to the scopes themselves, not to optional scopes: Shopify grants an optional scope only to an app that asks for it itself.
  2. Approve the new permission in your Shopify admin.
  3. In SemPost, press Check on the store's row in Settings › Store connections.

read_orders reads the last 60 days of orders. Orders are protected customer data at Shopify; an app made in your store's own organization normally reads them without a review.

WooCommerce

The REST key reads orders when the WordPress user it belongs to may see them, such as an Administrator or a Shop manager. WooCommerce records where an order came from only while Order Attribution is on (WooCommerce › Settings › Advanced › Features, WooCommerce 8.5 or later). A store connected without a key (Store API) can't read orders: connect it with a REST key.

If something goes wrong

  • Your store's app can't read orders. Add read_orders as described above and press Check.
  • Shopify didn't let your app read orders, although it has the read_orders permission. Approve the app's latest version in your Shopify admin and press Check. If it keeps happening, ask Shopify Support to let your app read protected customer data.
  • The store didn't let SemPost's key read orders. In WordPress, give the key's user the Shop manager or Administrator role, then press Check.
  • No orders came through this rule's links in this period. Check that the rule has Add the product link on and that its posts went out in live mode, and on WooCommerce, that Order Attribution is on.
  • The store didn't answer the last readings. SemPost tries again by itself; the figures are from the last reading that worked.

On this page