Help center › Data and accounts

Sending conversions to ad accounts

Megametrics can send the sign-ups and payments it records back to Meta and Google Ads. The ad accounts then see conversions their own pixel and tag missed, and campaigns learn from them. Sending is off until the owner or an admin turns it on, for each platform of the project separately.

Why send them

  • The pixel and the tag miss conversions. Blockers stop them, Safari keeps their cookies for 7 days at most, and payments confirmed on your server, in Stripe or in Shopify never reach the browser. Megametrics receives those events from your server and webhooks and passes them to the platform server to server.
  • Bidding learns from the right event. The campaign optimizes for a paid order, not just a filled form, if that's what you send.
  • It doesn't change the numbers here. Our attribution works the same way with sending on or off. The ad account counts what it receives by its own rules.

Before you start

  • The website code is connected. Without it the block says “Connect the website first”.
  • Meta Ads or Google Ads is connected as a source in the project.
  • The events you want to send are marked with the Conversion switch in the Website and events panel.

On the Sources page, click Details in the Meta Ads or Google Ads row. The Send conversions to Meta or Send conversions to Google Ads block has six steps, all on one screen: What you need first, Connection, Mapping, Mode, Dry run and Turn on.

Meta step by step

The checklist in What you need first:

  • One server integration per event. If Shopify's Facebook and Instagram app, another partner or the Conversions API Gateway already sends the same events to this dataset from a server, turn them off for those events. Their event IDs differ from ours, so Meta would count each purchase twice.
  • An access key for the Conversions API from your Events Manager.
  • The pixel passes our event ID — the order number, if the Meta pixel is on the website. See “Duplicates with the Meta pixel” below.

Then:

  1. In Events Manager, open the dataset (formerly the pixel) and the Settings tab. Copy the dataset ID. In the Conversions API section, click Generate access token. Meta shows this link only to people with developer rights in the business.
  2. Connection — paste the dataset ID and the key. The key is stored encrypted and is never shown again: the block only says that it's set. To change it, paste a new one. No sign-in to a Meta app is needed.
  3. Mapping — for each of your conversion events, pick a standard Meta event or type your own name. For example, Purchase → Purchase, Lead → Lead, Sign up → CompleteRegistration, Start trial → StartTrial. Events without a mapping aren't sent.
  4. Mode — see “Modes” below.
  5. Dry run, then Send a test event: in Events Manager, on the dataset's Test events tab, copy the test code, paste it into the block and click the button. The event appears on that tab.
  6. Turn on — tick the checklist and turn the switch on.

Meta requires the value and the currency for Purchase: a purchase without them is rejected. Meta doesn't drop test events either: they are processed like ordinary ones, so a test event is a real event in your dataset. That's why the test event is made up: it has its own ID and no customer data and never repeats a real conversion. It takes the first event from your mapping; a test Purchase goes with value 0.

The checklist in What you need first:

  • A conversion action for import, created as secondary. Its source is import from clicks. A secondary action is for observation only: its conversions show in the All conversions column and don't change how running campaigns bid.
  • Make it primary later. We suggest waiting until it has collected 35–50 conversions and you have compared them with ours. Only then change the campaigns' goals: a primary action changes how they bid.
  • Enhanced conversions for leads. In Google Ads, under Goals → Conversions → Settings, accept the customer data terms and turn on enhanced conversions for leads. Without this, Google doesn't process email and phone hashes, and only conversions with a click ID count.

Then:

  1. Connection — the block uses the Google account and ad account already connected in the Google Ads source. Google asks separately for the right to send conversions: if the block says it's missing, click Give access to send conversions and allow it in Google's window. Conversions go through Google's Data Manager API. There is nothing to paste.
  2. Mapping — for each of your conversion events, pick an action from the account's list. Only actions with import from clicks are listed.
  3. Mode, Dry run and Turn on — as for Meta. Google has no test events.

Modes

  • Only conversions after a click from this platform (the default). In the 30 days before the conversion, the person has a touch with this platform's click ID — fbclid for Meta; gclid, gbraid or wbraid for Google — or a paid touch from this platform. The platform receives data only about people who came from it. Facebook and Instagram add fbclid to ordinary links too, so for Meta this includes people who came from an ordinary post, not only from an ad.
  • All conversions — every conversion with a mapping. The platform can match more of them itself, by email and phone hashes and its signed-in users, and learns better. In exchange, it receives data about people who never clicked its ads, including those who came from other channels.

Choose All conversions only if your privacy policy and your visitors' consent cover sharing their data with that platform.

What is sent

Meta

  • event_name — the Meta event from your mapping;
  • event_time — the time of the event, in Unix seconds;
  • event_id — the order number, otherwise our event ID, to merge duplicates with the pixel;
  • action_source — website for events from the website; system_generated for events from your server, Stripe, Shopify and webhooks, which have no browser;
  • event_source_url — the address of the page where the event happened, if there is one;
  • client_user_agent — the browser's User-Agent, for events from the website. Meta requires it for website events, so Megametrics keeps it with events from the website — not with page views — for as long as the event;
  • user_data: em — the SHA-256 hash of the email, ph — of the phone, external_id — the SHA-256 hash of our own person ID (not your customer ID), fbc — from the fbclid of the person's last touch with one: fb.1.<time the fbclid was first seen, in milliseconds>.<fbclid>;
  • custom_data: value, currency, order_id;
  • test_event_code — only in the test event.

The email and phone themselves are never sent: we don't have them. We don't keep IP addresses, so client_ip_address isn't sent either, and Meta matches somewhat fewer events than it does from its own pixel.

  • the conversion action from your mapping, in the ad account chosen in the block;
  • the conversion time, in RFC 3339 format, in UTC;
  • the value and the currency code;
  • the transaction ID — the order number, otherwise our event ID;
  • the click ID — gclid, gbraid or wbraid of the person's last touch with one, if that click was no more than 90 days before sending;
  • the SHA-256 hashes of the email and phone, if we have them — with a click ID and without one. Without a click ID this is enhanced conversions for leads: Google finds the click itself. For Google, the email hash is taken without the dots before “@” in gmail.com and googlemail.com addresses, and without a “+” there and everything after it.

Google doesn't import a conversion uploaded more than 90 days after its click, or more than 63 days after it if the conversion has hashes only, although it accepts the request. So an older click ID isn't sent, and a conversion with hashes only that is older than 63 days is skipped: the dry run shows how many.

When conversions are sent

  • Every minute in the background. Send now under the block sends without waiting.
  • Only conversions with a mapping that fit the mode. For Meta — no older than 7 days: Meta rejects older events. For Google — no older than 90 days, and no older than 63 days with hashes only.
  • Each conversion goes to a platform once at most. Turning sending off and on again doesn't send it twice.
  • After a network error or a server error on the platform's side, sending is retried up to 3 times: after 10 minutes, an hour and 6 hours.
  • If the platform's request limit is reached, or the key, the rights or the dataset ID are wrong, conversions wait and don't use up retries. The source row shows the platform's message, and the background sending tries again in 15 minutes; Send now tries at once.
  • If the platform refuses the conversion itself, it's marked rejected with the platform's message and isn't retried.

Dry run and the test event

Dry run shows the requests that would go out for the last 10 matching conversions, without sending anything. Hashes are shown by their first 8 characters, and the access key is hidden. Use it to check the mapping and the fields before you turn sending on.

For Meta, Send a test event sends one made-up event with the test code from Test events in Events Manager — see step 5 above.

Duplicates with the Meta pixel

If the Meta pixel is on the website and sends the same event, Meta gets each conversion twice: from the browser and from us. It merges them into one if event_name matches and the pixel's eventID equals our event_id, and the second copy arrives within 48 hours of the first. Of the two, Meta usually keeps the one that arrived first.

Our event_id is the event's order number, order_id. So pass the order number to our code and pass the same number to fbq as eventID:

mm('event', 'Purchase', { value: 120.5, currency: 'USD', order_id: 'A-1' })
fbq('track', 'Purchase', { value: 120.5, currency: 'USD' }, { eventID: 'A-1' })

The Meta event name in fbq must be the one from your mapping.

An event without an order number — from the website, your server, Stripe or Shopify — goes with our own event ID, which the page can't know. Meta can't merge it with the pixel's copy: don't send that event from the pixel too, or don't map it here.

Delays

  • Meta shows received events on the dataset's overview in Events Manager, and the test event on the Test events tab.
  • Google processes uploads in the background. An accepted conversion can stay pending for up to 24 hours, and the account's upload diagnostics cover full calendar days. Allow up to 48 hours before judging the result.
  • “Sent” in our log means the platform accepted the conversion, not that it matched it to an ad. Google reports conversions it couldn't match to a click in the action's diagnostics.

The log

Under the block:

  • the summary: how many were sent and rejected in the last 24 hours;
  • the latest entries: the time, the status — sent, rejected or waiting — and the platform's message.

The log keeps the status and the platform's answer, up to 500 characters. Request bodies and the access key aren't kept.

If more than 5% of what was sent to a platform in a day is rejected, with at least 20 sent, the source row needs attention: “Sending conversions: M of N rejected” with the platform's most frequent message. The Signals page shows the same with what to do — see Signals and alerts.

Why the ad account's numbers won't match ours

  • The mode. By default only conversions after a click from this platform are sent.
  • Their rules. The ad account counts by its own window and model, adds conversions after a view and modeled ones, and puts a conversion on the day of the click or the view. The details are in Attribution and customer journeys.
  • Matching. The platform counts a conversion only if it links it to an ad. Without an IP address and with hashes only, some conversions stay unmatched.
  • Duplicates. With the same event ID, the pixel's copy and ours count once; without it, twice.
  • The secondary action. In Google Ads its conversions are only in All conversions, not in Conversions.
  • Time. Google needs up to 48 hours. Meta doesn't accept events older than 7 days, so the days before sending was turned on aren't there.
  • Rejected conversions don't reach the ad account at all.

Turn it off

Turn the switch off in the block. Sending stops at once; conversions already sent stay in the ad account — Megametrics doesn't withdraw them. Turning sending back on doesn't send them again.

Disconnecting the Meta Ads or Google Ads source in Sources, or Stop collecting in the Website and events panel, turns sending off too; the owner or an admin turns it back on. Disconnecting the Google account of the Google Ads source stops sending to Google until an account is connected again. Deleting the project deletes the settings, the access key and the log.

A viewer and a member see the settings, the log and the dry run. The owner and admins also change the settings, send a test event, turn sending on and off, and click Send now. In the demo workspace the block isn't shown.

Limits

  • Meta and Google Ads only for now.
  • No IP address, see “What is sent”.
  • The phone hash fits one platform at most. The phone is hashed as it was given: digits, with “+” if the number started with it. Google matches it only in the international format with “+”, Meta only without “+”, with the country code and without leading zeros.
  • Fewer click IDs. Blockers and Safari's 7-day cookie limit lose some touches, so fewer conversions fit the default mode.
  • Consent is yours. You are the controller of your visitors' data; Meta and Google receive it under their own terms with you. Consent to the website code isn't automatically consent to sharing data with ad platforms: ask for it where the law requires. See the Data Processing Agreement.

Next: How loading works

Didn't find the answer?

Write to us — a person replies within one working day.