Przejdź do treści
Pomoc
Facebook serwerowe API konwersji Meta Platforms, Inc.

How do I set up the Facebook Server Conversions API (Meta Conversions API)?

Install the Facebook Server Conversions API app to send your orders to Meta from Storeep's servers. Create an access token in Meta Events Manager, use the same Pixel ID and event as your browser pixel, send recovered abandoned orders, and test with a test code.

3 minuty czytania
6 min

What this app does

The Facebook Server Conversions API app sends your orders to Meta from Storeep's servers through the Meta Conversions API. Ad blockers and iPhone limits cannot hide these events. For browser events too, install the Facebook Browser Pixel app with the same pixel. How the two work together is explained in Tracking and Analytics.

Before you start

  • Your Pixel ID from Meta Events Manager, the same one your browser pixel uses.
  • An access token. In Events Manager, open your pixel, go to Settings, find the Conversions API section, and click to generate an access token. Copy it right away.

Set up the app

  1. Open Apps, find Facebook Server Conversions API, click Install, open it, and click Add new pixel.
  2. Keep Activate on. Turn on Abandoned orders only if you want recovered abandoned orders sent too. An order that stays abandoned is never sent to Meta.
  3. Type a Pixel name and paste the same Pixel ID you used in the Browser Pixel app.
  4. Pick the same Markets and the same Conversion event type (Lead or Purchase) as your Browser Pixel.
  5. Paste your token into Facebook access token. The field hides the token like a password: click the eye icon to show it and check that you pasted all of it.
  6. Leave Activate test mode off for now, and click Add.

When you save, Storeep checks the token with Facebook. If Facebook does not accept it, you see "The access token you have entered is incorrect".

What Meta receives

  • Your conversion event for each new order, with the value, currency, and products.
  • A ViewContent the first time a visitor opens a product, collection, or landing page in a visit.
  • Order events carry the buyer's email, phone, name, and city in hashed form (advanced matching), which improves your Event Match Quality.
  • When the visitor came from an ad, Meta's click ID is sent too, so the sale is linked to the right click.

Meta does not accept a sale with no value, so orders with a total of 0 are not sent.

Avoid double counting

Storeep gives the browser and server copies of each event the same event ID, so Meta counts it once. In Events Manager you should see both Browser and Server as sources with events marked as deduplicated. This only works when both apps use the same Pixel ID and the same event type.

Test your setup

  1. In Events Manager, open your pixel and go to Test events. Copy the test code (it looks like TEST12345).
  2. Edit your entry in the app, turn on Activate test mode, paste the code into Test code, and click Save.
  3. Place a test order on your store. The server event shows in the Test events tab.
  4. Turn test mode off when you are done. Test events do not count for your ads.

Common problems

  • "The pixel id you have entered is incorrect": the Facebook Pixel ID is numbers only.
  • "The test code you have entered is incorrect": the code must start with TEST. Copy it again from Events Manager.
  • Events stopped: the access token was removed or the pixel lost access. Generate a new token and edit the entry.
  • Only browser events show: check the entry is Activated, covers the right market, and test mode is off.

Nadal potrzebujesz pomocy?

Napisz do nas, a odpowiemy.

Kontakt