Send store events to Meta
Connect your store to a Meta Dataset so Meta ads can measure and optimize for product views, carts, checkouts, and purchases.
Runner sends your store’s shopping events to your Meta Dataset through Meta’s Conversions API, and by default through the Meta Pixel too. Meta uses them to measure your Facebook and Instagram ads and to find more people who buy. You do not add code to your store, and the setup does not change your checkout.
Entry path
Open a store project → All features → Measure → Analytics. Select Setup in the bar at the bottom of the page, then select the Tracking tab.
Before you start
- You need a Meta business account with access to Events Manager.
- You need permission to manage the store’s Analytics settings in Runner.
- Plan about 10 minutes.
What Runner sends to Meta
| Shopper action | Meta event | Value sent |
|---|---|---|
| Opens a product page | ViewContent |
Product price and store currency |
| Adds a product to the cart | AddToCart |
Item price times quantity, in the cart’s currency |
| Starts checkout | InitiateCheckout |
Cart total in the cart’s currency |
| Places an order | Purchase |
Order total in the store’s currency, with the order ID |
Product views, cart adds, and orders also name their products. Each product is sent with its Runner product ID, the quantity, and the price, as Meta’s content_ids and contents with the content type product_group. Started checkouts do not name products. Meta catalogue ads also need a Meta catalogue whose item group IDs are these product IDs.
Each event also carries the page address, the shopper’s IP address and browser, a hashed visitor ID, and Meta’s ad-click ID when the visit came from a Meta ad. These help Meta match the event to an ad click. Events are sent from Runner’s servers. When Load the Meta Pixel on your live store is on, the shopper’s browser sends the same events too, with the same event ID, so Meta counts each one once. Runner does not send the shopper’s name, email, or postal address in these events.
1. Create a Dataset in Meta
If you already have a Dataset for your website, skip to step 2.
- Open Meta Events Manager.
- Select Connect data, choose Web, and select Next.
- Select Create new dataset, enter a name such as your store name, and select Create.
- If Meta asks how to connect, choose Conversions API. You can skip Meta’s event picker and code instructions. Runner already does that part.
Choose Web, then Next.
Give the Dataset a name you will recognize.
2. Copy the Dataset ID
In Events Manager, open Datasets. The Dataset ID is the number under the Dataset name. Copy it.
The ID in this example is from a test Dataset. Yours is a different number.
3. Generate an access token
- Open your Dataset and select the Settings tab.
- Scroll to Conversions API.
- Under Set up direct integration, select Generate access token.
- Copy the token.
Generate access token is at the bottom of the Set up direct integration section.
Treat the token like a password. Paste it only into Runner, and do not send it by email or chat.
4. Open Tracking in Runner
- In your store project, open All features → Measure → Analytics. When Analytics is pinned under Tools in the sidebar, you can select it there.
- In the bar at the bottom of the page, select Setup.
- Select the Tracking tab.
Setup is the last item in the bottom bar. Keys are blurred.
The tabs under the Tracking title switch between the setup pages. All reports above the title returns to the report list.
If your store is not built yet, Analytics first shows Nothing to count yet. Select Open analytics anyway to reach Setup.
5. Turn on the consent banner
Scroll to Consent mode and select Consent banner. The choice saves at once, and your store shows the banner from the next page load. You do not need to publish again.
Runner sends events to ad platforms only from shoppers who select Allow analytics on the banner. With Implicit mode, no events go to Meta. The Consent mode card shows Meta gets no events on Implicit, and the Meta row in Ad platforms shows Connected · Gets no events.
6. Add your Meta Dataset
- Scroll to Ad platforms and select Meta.
- Paste the Dataset ID into Destination / pixel ID.
- Paste the token into Access token.
- Optionally, enter a Label that names the Dataset.
- Keep Load the Meta Pixel on your live store on, unless your store already loads its own Meta Pixel.
- Keep Enable this destination on and select Save destination.
Runner checks the token with Meta when you save. When the check passes, Runner shows Meta destination saved, and the Meta row shows Connected · Sends after Allow. If it fails, generate a new token from the same Dataset and save again.
7. Check that it works
- Open your store in a private browser window.
- Select Allow analytics on the consent banner.
- Open a product and add it to the cart.
- Return to Tracking and refresh the page. In the Events list, View content and Add to cart show a new fire, and the Platforms column shows 1 on.
- In Meta Events Manager, open your Dataset’s Overview. The events appear within about 30 minutes. Meta counts an event once when it arrives from both the browser and the server.
1 on means the event goes to one ad platform. Begin checkout and Purchase show 1 on too, and fire when a shopper checks out and places an order. To stop or start sending one event to Meta, select its row and use the switch under Send to platforms.
Troubleshooting
| What you see | Meaning and next step |
|---|---|
| Meta’s Test Events tab shows no server events | Expected. Runner sends server events without a test code, so they show in Overview instead. |
| The Meta Pixel Helper browser extension finds nothing | Runner loads the Pixel only on the published store, in Consent banner mode, after the shopper selects Allow analytics. If Load the Meta Pixel on your live store is off, events go only through the Conversions API. |
| Overview shows nothing after 30 minutes | Check that the event appears in the Runner Events list with 1 on, that you selected Allow analytics on the banner, and that you visited the published store, not the editor preview. |
| Save destination fails | Meta did not accept the token for this Dataset. Generate the token from the same Dataset whose ID you pasted, then save again. |
| The Meta row in Ad platforms shows Connected · Gets no events | Select Consent banner in Consent mode. No events reach Meta until you do. |
| Purchases show in another currency | Purchase values use the store’s currency. Check the currency of the store’s region. |