Rovenue SDKBeta
Integrations

Meta Conversions API (CAPI)

Forward Rovenue subscription and revenue events to Meta's server-side Conversions API for reliable attribution without client-side pixels.

Meta Conversions API (CAPI)

The Meta CAPI integration forwards Rovenue subscription and revenue events directly to Meta's server-side Conversions API, enabling reliable attribution for mobile campaigns without relying solely on client-side pixels.


1. Get your credentials from Meta

  1. Open Meta Events Manager.
  2. Select your Data Source (Pixel).
  3. Go to Settings → API Access.
  4. Copy:
    • Access Token — a long-lived system user token (recommended) or a page access token.
    • Pixel ID — the numeric identifier shown at the top of the Data Source settings page (e.g. 123456789012345).

Store these values securely. The access token grants write access to your Pixel.


2. Add the integration in Rovenue

  1. In the Rovenue dashboard, navigate to Apps (left sidebar).
  2. Find Meta CAPI in the integrations grid and click it.
  3. The side drawer opens. Fill in the Credentials step:
    • Pixel ID — paste the Pixel ID from step 1.
    • Access Token — paste the access token from step 1.
  4. Click Validate — Rovenue calls the Meta CAPI test endpoint to verify the credentials are accepted.
  5. Proceed through the remaining drawer steps (event mapping, test event code, enable).
  6. Click Save to activate the integration.

When your SDK passes an identityContext with an event, the following fields are forwarded to Meta CAPI:

FieldForwarded asHashing
emailuser_data.emSHA-256 (lowercased + trimmed before hashing)
phoneuser_data.phSHA-256 (digits only before hashing)
externalIduser_data.external_idSHA-256 (trimmed before hashing)
ipuser_data.client_ip_addressForwarded verbatim — not hashed
userAgentuser_data.client_user_agentForwarded verbatim — not hashed
fbp / fbcuser_data.fbp / user_data.fbcForwarded verbatim — not hashed
ttclid / ttpNot sent to Meta CAPIN/A (TikTok-specific fields)

Consent is your responsibility.

Rovenue acts as a data processor. Your application is the data controller. You must obtain the end-user's informed consent before passing any PII in identityContext. GDPR, CCPA, KVKK, and similar regulations place the consent obligation on the controller (you), not the processor (Rovenue).

Additional guarantees:

  • Rovenue never persists identityContext fields at rest. PII is hashed in-process; raw values are not written to any database.
  • response_body from Meta CAPI is stored but truncated to 4096 bytes.
  • The wire format uses camelCase JSON; each envelope carries a numeric version field (currently 1) and a stable eventId for downstream dedupe.

App store purchases (app events)

A purchase made in your app (App Store, Google Play, through the Rovenue SDK) is an app event to Meta. Meta refuses an app event that lacks its app data block, so what Rovenue does depends on the connection:

  • No Meta app ID (the default): app purchases are not sent. Each one appears in the Delivery Log as skipped with the reason app_events_unconfigured. Web funnel purchases are not affected — they are always sent as website events.
  • Meta app ID set (optional field in the Credentials step, the app your dataset is connected to): app purchases are sent with action_source: "app" and an app_data block:
    • advertiser_tracking_enabled — 1 only when the iOS user allowed tracking (App Tracking Transparency authorized); 0 otherwise and always 0 on Android.
    • application_tracking_enabled — 1.
    • extinfo — i2 (iOS) or a2 (Android); the other device fields are sent empty because Rovenue does not hold them on the server.
    • user_data.madid — the IDFA, only when the user allowed tracking. The Android advertising ID is never sent.
  • A subscriber with no iOS or Android platform (for example one created by the web SDK) cannot be sent as an app event: it is skipped with the reason no_app_platform.

App trial starts. With a Meta app ID set (and the action source app), a free trial started in your app (App Store or Google Play) is sent as a StartTrial app event, with the same app_data and the same tracking rules as purchases, when StartTrial is enabled in the connection's events step. Without an app ID, trial starts are not sent and leave nothing in the Delivery Log. Only a trial start goes out this way: cancellations, refunds, expiries and other subscription changes are never sent to Meta. A Stripe trial (web checkout or a web funnel) is never an app event: on a connection with an app ID it is skipped as not_an_app_store_trial, and a web funnel trial reaches Meta once, through the funnel's own conversion. A redelivered trial start keeps the same event_id, so Meta counts it once. Trial starts from before the connection was enabled are not replayed.

Send Test Event follows the same rule: on an app connection with a Meta app ID it sends an iOS app event (tracking not allowed, no IDFA) with your test event code; without an app ID it is skipped as app_events_unconfigured.

The app event format is unverified against Meta until the owner's live probe: Rovenue's tests check it against Meta's published field list, not against Meta itself. Use a test_event_code and Meta's Test Events tab to confirm your first app events arrive.


Sandbox events

Sandbox purchases (TestFlight, Google Play license testers, Stripe test mode) are not sent to Meta by default, so test traffic never shows up as real conversions or revenue. This covers every event Rovenue sends: revenue, subscription, credit and funnel events all carry the environment of the purchase or key behind them.

  • To send them anyway (for example to a test property), turn on Send sandbox events in the connection's Activate step. Meta receives them like production events, so keep them away from your production reporting.
  • Each sandbox event Rovenue holds back appears in the connection's Delivery Log as skipped with the reason sandbox_event, so a test purchase that never arrives is explained there.
  • An event whose environment Rovenue cannot work out is handled like a sandbox event: it is never sent as production.

4. Verify events are arriving

  1. Go back to Meta Events Manager.
  2. Select your Data Source and open the Test Events tab.
  3. In the Rovenue drawer's Test step, you set a test_event_code (e.g. TEST12345). Trigger a real event from your app or use the Rovenue Send Test Event button.
  4. Within a few seconds, the Test Events tab should show the event with your test event code, confirming the full pipeline is working.

If events are not appearing:

  • Verify the Pixel ID and Access Token are correct (use Validate in the drawer).
  • Check Apps → Meta CAPI → Delivery Log in Rovenue for HTTP status codes and error messages.
  • Ensure enabledEvents in the connection includes the event type you are sending.

On this page