Skip to content
Founding 100Double credits · closes 30 Nov
Docs · Tracking sales

Tracking sales

Connect your store. Every order is matched to the post that brought it, so you see which posts, networks, formats and hooks sell.

How it works

Open Sales in the app and connect where you sell. From then on, each order is tied to a post in three ways:

  • Tracked links: a link to your store in a new post counts the visit and tells your store which post sent the buyer.
  • A code per video: every order with the video’s discount code counts for it. It works where captions have no clickable link, like TikTok and Instagram.
  • Your store’s own records: the visit your store kept with the order, or the pixel on your website.

You then see revenue per post (the same post on several networks counts as one), per network, format, presenter and hook pattern. Studio and the planner read what sold and make more of it.

i
Included in every plan and in the free trial. It uses no credits. Workspace admins connect stores, make codes and connect ad pixels.

Connect a store

  1. 1In the app, open Sales.
  2. 2On the card of your store (Shopify, Stripe, WooCommerce or Other website), click Connect.
  3. 3Follow the steps for your store below.
  4. 4Shopify, Stripe and WooCommerce: Hookbird reads the last 60 days of orders. They show up in a few minutes.
StoreConnects withNew ordersDiscount codes
ShopifyInstall from the Shopify App StoreIn secondsMade in Shopify
StripeA restricted keyWithin 15 minutesMade in Stripe
WooCommerceApprove in WooCommerce, or keysIn secondsMade in WooCommerce
Other websiteThe pixel on your siteWhen the page reports itCodes you already have

Shopify, Stripe and WooCommerce are also read every 15 minutes, and every night the last 30 days are read again to catch refunds. To read one right away, click Update now next to it in Sales → Connections. Add another store there with Add a store.

Shopify

  1. 1On the Shopify card, click Connect. The Hookbird app on the Shopify App Store opens.
  2. 2Click Install and approve Hookbird in your Shopify admin.
  3. 3Shopify opens Hookbird. Sign in if asked, then confirm Connect your store to this workspace on Sales.

Hookbird reads your orders and creates the discount codes you ask for. Nothing else.

Uninstalling Hookbird in Shopify disconnects the store. Shopify then asks Hookbird to delete the store’s data, and its orders are deleted.

Stripe

  1. 1In Stripe, open Developers → API keys and click Create restricted key.
  2. 2Name it Hookbird and allow the five permissions below. Nothing else.
  3. 3Create the key. It starts with rk_live_ (rk_test_ for a test account).
  4. 4In Hookbird, on the Stripe card, click Connect, paste it in Restricted key, then click Connect.
PermissionAccessUsed for
Checkout SessionsReadYour orders, from Payment Links and Checkout
PaymentIntentsReadRefunds on each order
ChargesReadRefunds on each order
CouponsWriteThe discount behind a code you make
Promotion codesWriteThe codes you make
  • Links to your Payment Links (buy.stripe.com) in your posts are tracked automatically. The Payment Link keeps the visit, so the order finds its post.
  • Orders from other Checkout pages count for a post through its discount code.
  • A code you make becomes a promotion code in Stripe. Buyers can type it where your Payment Link or Checkout allows promotion codes.

WooCommerce

In one click:

  1. 1On the WooCommerce card, click Connect.
  2. 2Type your Store address, like https://shop.example.com.
  3. 3Click Continue to my store and approve Hookbird in WooCommerce. It brings you back to Sales.

Or click Paste keys instead:

  1. 1In WordPress: WooCommerce → Settings → Advanced → REST API → Add key.
  2. 2Description Hookbird, permissions Read/Write, then Generate API key.
  3. 3Paste the Consumer key (ck_…) and the Consumer secret (cs_…), then click Connect.
  • Hookbird adds two webhooks to your store (order created, order updated), so new orders arrive in seconds. Disconnecting removes them.
  • WooCommerce 8.5 or later keeps where each order came from (order attribution). That is how an order finds its tracked link. Codes work on any version.
  • Codes you make are coupons in WooCommerce.

Any website (pixel)

For a site without a store above. On the Other website card, click Connect, type your Website address and click Connect. Hookbird shows two snippets with your own key. Find them again later with Pixel code, next to the site in Sales → Connections.

1. Every page. Paste this in the <head> of every page of your site:

html
<script async src="https://app.hookbird.ai/api/public/sales/pixel.js" data-key="YOUR_PIXEL_KEY"></script>

2. Order confirmation page. Report the purchase: replace ORDER_ID, the value, the currency and the discount code (or remove code).

html
<script>
  window.hookbird = window.hookbird || function () { (hookbird.q = hookbird.q || []).push(arguments); };
  hookbird('purchase', { id: 'ORDER_ID', value: 49.90, currency: 'USD', code: 'DISCOUNT_CODE' });
</script>
  • id: your order number. Each order is recorded once.
  • value: the amount paid, like 49.90.
  • currency: three letters, like USD or EUR.
  • code: the discount code used, if any.
  • Visits through your tracked links are remembered for 30 days on that browser, in a first-party cookie. A second cookie keeps a random visitor id for a year.
  • Optional: call hookbird('add_to_cart') and hookbird('checkout') on those steps, after the same first line as the purchase snippet. They fill Added to cart and Started checkout under On your website.
  • Hookbird cannot make codes on a website. Add a code you already have: type it in Your code and click Add the code.

A discount code per video

Put the code in the caption or say it in the video. Every order with it counts for that video. On TikTok and Instagram it is the surest way to count sales.

  1. 1Open the post’s Sales of this post. Or, while you write it, open More options → Sales in the composer.
  2. 2Type a Code, or leave it empty for a random one.
  3. 3Click Make a 10% code. Hookbird creates it in your store.
  4. 4Made in the composer? Paste it in your post. It counts for the post once you save it.
  • New codes give 10% off. Change it per store in Sales → Connections: Code discount: 10%, then Percent off or Amount off. Codes already made keep theirs.
  • Have a code already? Click I already have a code, type it and click Add the code.
  • A code belongs to one video.

How an order is matched

Each order counts for one post. The first rule that applies wins:

  1. 1Discount code: the order used a code made for a video.
  2. 2Tracked link: the buyer’s last visit before the order came through a tracked link.
  3. 3Tracked link, earlier visit: the buyer’s first visit did.
  4. 4Website pixel: on Other website, the pixel remembered a tracked visit on that browser.

Anything else shows as Not from a post. These are the labels in Latest orders.

  • A match is kept when the order changes later. A refund lowers its revenue, and a cancelled order counts for nothing.
  • Revenue is shown in the currency your store sells most in. Sales in other currencies are listed under Also sold in, never converted.

Read your sales

Sales → Overview, for the last 7, 30 or 90 days:

  • Sales from your posts and their share of your store’s sales, Orders, Clicks on your links and how many became orders, Average order.
  • Sales per day, after refunds.
  • Posts that sell: open one to see each network, its links and codes.
  • By network, By format, By presenter and By hook pattern.
  • On your website: visits, carts and checkouts the pixel saw.
  • Latest orders: every order of your store, and where it came from.

Send sales to Meta and TikTok

Optional. Your own Meta dataset and TikTok pixel receive the purchases your posts bring, from server to server, so your ads learn from them.

  1. 1In Sales → Connections → Send sales to your ads, click Connect next to Meta or TikTok.
  2. 2Paste the ID and the Access token (table below), then click Save.
  3. 3To check it, click Edit, type a Test code and click Send a test purchase. It shows in the network’s Test events.
  4. 4A test code you save goes with every sale, and the row shows Test mode. Remove it once you have checked (paste the token again to save).
FieldMetaTikTok
IDDataset ID: Events Manager → your dataset (pixel) → SettingsPixel ID: TikTok Events Manager → your pixel, under its name
Access tokenSame page: Conversions API → Generate access tokenSame pixel: Settings → Events API → Generate access token
Test code (optional)Events Manager → Test events → server test code (TEST…)Pixel → Test events → test event code

What is sent: a Purchase with the amount, the currency, the order number and the page, plus the IP address, browser and ad click id (from fbclid for Meta, ttclid for TikTok) of the visit that brought it.

  • Only orders that came through a tracked link: the visit is what the network matches. An order matched by its code alone is not sent.
  • Only new orders, less than 7 days old. Orders read when you connect a store, and cancelled orders, are not sent.
  • A visit from a browser that sends Global Privacy Control is counted with no IP address, browser or ad click id, and its purchase is never sent.
  • Disconnect stops new sales. What was sent stays in your ads account.

What no tool can see

Someone watches your video, then buys days later on another device, with no code and no link. No tool can tie that order to the post. It shows as Not from a post.

To count more of them, say the video’s code in the video and keep its tracked link in your bio while the post runs.

Data kept and deletion

  • Orders: id, number, date, amount, currency, refunds, whether it was cancelled, new or returning customer when the store says, discount codes, and the post it matched.
  • No customer names, emails, phone numbers or addresses.
  • Visits through tracked links: time, link, device type, referrer and ad click ids. IP address and browser are kept 30 days, only to match purchases at the ad networks.
  • Store keys and pixel tokens are encrypted and never shown again.
  • Disconnecting a store deletes its orders from Hookbird. Connect it again and its recent orders come back.

More in the Privacy Policy and on Data deletion.

Troubleshooting

  • Needs attention on a store: it could not be read, and the reason shows under its name. Fix what it says, then click Update now.
  • Stripe: “This key is missing a permission”: create the key again with the five permissions above.
  • WooCommerce: “No WooCommerce API at this address”: check the address, and that WordPress permalinks are not “Plain”.
  • A post has clicks but no orders: the buyers may have paid later without the link. Give the video a code.