Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial
Solutions

See which posts and ads your orders came from

A tracked link in every post and a small script on your shop tie a visit to the customer it became. Your shop then reports each order and refund from its own server, and HeyMySocial sets the revenue beside the post, the ad and the spend.

There is no plugin for any shop platform. Connecting your shop is a small piece of development work, described on this page.

The Funnels screen with its four tabs: websites and forms, tracked links, landing pages and items to review, and one website that is receiving events.
Demo data The demo workspace offered when you set up your account.

There is no plugin for your shop platform.

Orders reach HeyMySocial in three ways, each of them yours to set up: a signed webhook from your shop's server, the REST API, or a CSV file. The script in the browser reports visits and customers. It is never allowed to report a sale.

How an order finds its way back to a post

Four parts, set up once.

  1. 1

    Put a tracked link in the post

    Create one for each post, ad or email under Funnels, Tracked links, and choose the post under "Content item", or let your assistant do it. The link forwards the visitor to your product page with campaign parameters and a signed reference. It sets no cookie and counts the click.

  2. 2

    Add the script to your shop

    Two lines in the head of every page. With the visitor's consent it keeps one random key for the visit in the browser's own storage. It reads nothing about the device and loads nothing else.

  3. 3

    Say who the customer is

    When someone gives you their email address, at checkout or at a newsletter sign-up, call hms('lead', {…}) with the address and your own customer number as external_id. That customer is now a lead, tied to the visit and the link.

  4. 4

    Report the order from your server

    When the order is paid, your server sends a sale_won event with the customer number, the order number, the amount and the currency. The same order number is the same sale, so a retry changes nothing.

What your shop sends

The order goes to the signed address of your website under Funnels (POST /hooks/{key}, signed with that website's secret), or to the REST API with a key that has the scope events:write. The values below are samples.

{
  "event_id": "order-10482-paid",
  "type": "sale_won",
  "occurred_at": "2026-11-20T09:14:00Z",
  "external_id": "10482",
  "lead_external_id": "C-2291",
  "properties": {
    "amount": 749.00,
    "currency": "DKK"
  }
}

A refund is its own event. It names the order it belongs to and may be partial, but never more than what is left of the order.

{
  "event_id": "order-10482-refund-1",
  "type": "sale_refunded",
  "occurred_at": "2026-11-23T13:02:00Z",
  "external_id": "CN-311",
  "lead_external_id": "C-2291",
  "properties": {
    "amount": 249.00,
    "currency": "DKK",
    "sale_external_id": "10482"
  }
}
  • lead_external_id is the customer number you gave in the browser call. An order that names a customer HeyMySocial has not met yet is kept under Funnels, Items to review, and applied when that customer arrives.
  • Your server can also create the customer itself, with a lead_created event that carries the contact details and the reference from the tracked link (hms_ref).
  • The exact fields, the signature and the answers are in the signed webhook, server events and sales by file.

Revenue the way your books see it

An order is recorded as what it is: an amount, a currency, a date and your order number. Nothing is converted and nothing is estimated.

  • Revenue is shown per currency. Kroner and euros are never added together.
  • A refund comes off the revenue of the order it names.
  • A corrected amount is an event of its own. The log keeps both.
  • Booked, invoiced and collected amounts are kept apart and never added.
  • Analytics breaks leads, sales and revenue down by campaign, post, ad, tracked link or channel.
How attribution decides
Analytics: filters for period, basis, attribution model and channel, then leads, qualified leads, won and booked revenue after refunds.
Demo data The demo workspace offered when you set up your account.

What it does not know about your shop

HeyMySocial is built around the person who bought, not around the basket.

No products and no baskets

An order is an amount with a currency, a date and a number. There are no product lines, no stock and no product feed.

One customer is one lead

A customer is a lead with one or more sales. A second sign-up from the same email address shortly after the first is kept as a duplicate and not counted again.

Only what the visitor allowed

An order from someone who declined tracking is still recorded as revenue. It is tied to no post and counted under "No consent".

Association, not cause

A matched order means the customer came through that link or campaign before they bought. It does not prove that the post caused the purchase.

What exists today

Tracked links with click counts and a signed reference
Website script with consent handling and an installation test
Orders by signed webhook, REST API or CSV file; refunds by signed webhook or REST API
Revenue per currency, after refunds, by post, ad, link and campaign
Publishing to Facebook and InstagramWaiting for Meta to approve the app. Today: post by hand and mark the post as published elsewhere.
Ad spend fetched from MetaWaiting for the same approval. Today: the Ads Manager export as a file.

Questions from shop owners and their developers

Which shop platforms does it connect to?
None by name. There is no plugin or app for any shop platform, and your platform's own order webhook will not fit as it is: the request has to be shaped as a HeyMySocial event and signed with your website's secret. Something on your side has to translate, which is a short script for a developer. Without one, export your orders as a CSV file.
Can the browser report the purchase, the way a pixel does?
No, on purpose. The script may send visits, a started form and a customer's details. From outside, a sale is accepted only from your server: signed, or with an API key. A number anyone can type into a browser console is not revenue.
What does the CSV file need?
One row per order: the customer's id in your system or their email address, the amount, the currency, the date and your order number. You map your own column names on the import screen under Leads, rows that cannot be read are listed with their line number, and importing the same file twice changes nothing. The file carries orders only: a refund is sent as an event or recorded on the customer's page under Leads.
How many events can we send?
Each plan has a monthly number of tracked events, from 10,000 on Solo to 1,000,000 on Agency. Visits, customers and orders all count. Going over is shown under Plan and usage; an event is not refused because of it.
Does it replace the statistics in our shop?
No. Your shop knows products, baskets and stock. HeyMySocial knows which post, ad and campaign a customer came through and what they went on to spend. Use both.

Start with one tracked link

Create an account, add your shop under Funnels and test the script. The order event can follow when your developer has looked at the documentation.