Connect Meta (Facebook and Instagram ads)
This article shows you how to connect your Meta pixel, so PlayerMagick sends your confirmed sales and viewing events to Meta through the Conversions API.
Available on: Pro, Business and Agency plans. Only the account owner or an admin can connect it.
Before you start
- You need a Meta pixel (Meta calls it a dataset) in Meta Events Manager, and access to its settings.
- Connect your sales platform first (Settings → Sales platforms): only confirmed sales are sent.
Step 1: Copy your pixel ID and an access token
- In Meta Events Manager, open your pixel and copy its ID (digits).
- Go to Settings → Conversions API and click Generate access token. Copy it.
- Optional: open Test events and copy the test code (like
TEST41870), to watch our test event arrive.
Step 2: Connect in PlayerMagick
- Go to Settings → Ad platforms.
- On Meta, click Connect.
- Paste the Pixel (dataset) ID, the Access token and, if you have one, the Test event code.
- Keep Send only after consent on if you sell in the EU or UK.
- Click Connect and send a test event.
PlayerMagick sends one pm_test event with the token first. If Meta refuses the token, nothing is saved: copy a new one and try again. The token is stored encrypted and never shown again (you see its last 4 characters).
Step 3: Check it in Meta
- In Meta Events Manager, open Test events: the
pm_testevent shows with your test code. - In PlayerMagick, open Delivery log and click Send a test event whenever you want to check again.
- Remove the test code when you're done testing (it is used only by the test event).
Choose what to send
Open Events and consent:
- Turn each event on or off. Watched 25% is off by default.
- Rename the custom events if you already use other names (letters, digits and
_). - Limited Data Use for US state privacy laws: Meta then limits how it uses the data of viewers in those states.
- Which videos and funnels: all, or only the ones you choose.
Your thank-you page also fires the pixel?
Use the order number as the Purchase pixel's event ID (fbq('track', 'Purchase', {...}, { eventID: '{order number}' })). PlayerMagick sends the same order number as its event ID, so Meta counts the sale once.
Troubleshooting
- "Needs attention": Meta refused the token (it expired, or the system user lost access to the pixel). Choose Replace token. Events wait and go out once the new token works (within Meta's 7-day limit).
- Refunds: Meta has no way to receive them. They stay in your PlayerMagick reports.