Skip to main content
Connecting CAPI platforms

§ 02

Connecting CAPI platforms

Wire Meta CAPI, TikTok Events API, Google Ads, GA4, Pinterest, Snapchat, LinkedIn, Reddit, Criteo, Awin, Taboola, and Outbrain. One schema in, 12 platforms out, deduplicated.

Connecting CAPI platforms

TrackLayer fans out every incoming event to the CAPI (Conversions API) destinations you configure. You manage credentials once in the dashboard; we handle per-platform payload shaping, identity stitching, click-ID restoration, and retry.

Supported platforms

PlatformEndpoint usedCredentials required
Meta (Facebook + Instagram)graph.facebook.com/v{N}/{pixel_id}/eventspixel_id, access_token
TikTokbusiness-api.tiktok.com/open_api/v1.3/event/track/pixel_id, access_token
Google Ads (Enhanced Conversions)googleads.googleapis.com/v{N}/.../uploadClickConversionscustomer ID, conversion action ID, developer token, OAuth client ID/secret + refresh token
Google Analytics 4 (Measurement Protocol)google-analytics.com/mp/collectmeasurement_id, api_secret
Pinterestapi.pinterest.com/v5/ad_accounts/{id}/eventsad_account_id, access_token
Snapchattr.snapchat.com/v3/{pixel_id}/eventspixel_id, access_token
LinkedInapi.linkedin.com/rest/conversionEventsad_account_id, access_token, conversion_id
Redditads-api.reddit.com/api/v2.0/conversions/events/{account_id}account_id, access_token
Criteoapi.criteo.com/2024-07/eventspartner_id, OAuth client credentials
Awinapi.awin.com/advertisers/{id}/transactionsadvertiser_id, api_token
Taboolaapi.taboola.com/1.2/{account_id}/s2s-actionaccount_id, access_token
Outbrainapi.outbrain.com/v1/conversionsmarketer_id, access_token

Connect a platform

  1. Open Platforms in the dashboard sidebar.
  2. Pick a destination from the 3×4 grid. Connected platforms show their live status pill (OK / DEGRADED / DROPPED); unconnected show + CONNECT.
  3. Click + CONNECT. The inline wizard walks through the 3-step flow:
    • Intro — what the platform expects + a link to the provider's docs for each credential
    • Credentials form — per-platform validation runs on blur (Meta pixel_id must be numeric, Google Ads customer_id must match \d{3}-\d{3}-\d{4}, etc.)
    • Review — confirm + test. A 200 from the provider's test-connection endpoint activates the platform.

Credential-format tips

Meta

  • pixel_id — numeric ID from Events Manager → Data Sources → Pixel → Settings
  • access_token — generate a system-user token in Business Manager → Users → System Users → Generate New Token. Required permissions: ads_management, business_management.

TikTok

  • access_token — Events Manager → Web Events → Set Up Events API → Generate Access Token
  • Token must be regenerated if the owning Business Center user loses the Events role.
  • Requires both a developer token (Ads API developer access) and an OAuth refresh token with https://www.googleapis.com/auth/adwords scope.
  • We use the Enhanced Conversions for Leads API (uploadClickConversions), so conversion_action_id must be an existing conversion action in the target customer account.

GA4

  • measurement_id is G-XXXXXXXXXX (not the UA-prefixed legacy ID).
  • api_secret is generated at Admin → Data streams → Web → Measurement Protocol API secrets.

LinkedIn

  • Requires LinkedIn Conversions API access (separate from Page/Profile API). The conversion_id is from Campaign Manager → Conversions.

Duplicate prevention

TrackLayer does not dedupe events across platforms — every destination sees every matching event. Deduplication happens within a platform using the event_id you provide (or we generate). Meta's pixel-and-CAPI dedup relies on this; same for TikTok, Pinterest, and others.

For routing subsets — "send purchases only to Meta + Google Ads" — use routing rules.

Testing a connection

The TEST button on every platform card fires a synthetic test_event to that provider's sandbox (where available). Response status + latency surface directly in the card.

For platforms without a sandbox (Awin, Criteo), the test hits the real API with a minimally-valid payload — providers log it as a test but don't charge it against your conversion budget.

Status pills — what they mean

  • OK — last attempt succeeded within the 24h window.
  • DEGRADED — 5–50% of recent deliveries failed. Usually a token about to expire or a field validation issue.
  • DROPPED — most recent deliveries failed. Check Quality → Contributing Factors for the specific field triggering reject.
  • IDLE — credentials valid, but no events sent yet.

Next steps

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.