Back to CRMDocumentation

Getting started

IntroAccess & setupUpdates

Modules

Campaigns StatisticsContentFacebook AccountsReportsAuto RulesAgentsUsersSettings

Guides

NotificationsIntegrationsFacebook + Tracker IntegrationSystem User Token (Facebook)Metrics glossaryFAQ

Facebook + Tracker Integration

Step by step: how to connect a Facebook account, and the rules your Keitaro or Binom setup must follow so CRM correctly computes spend, registrations and fake clicks.

Connecting a Facebook account

  1. Open the invite email and follow the link.
  2. Fill in the registration details and log into CRM.
  3. Open the “Facebook accounts” tab and click “Create New”.
Facebook accounts — Create New
The “Facebook accounts” tab → “Create New” starts the OAuth connection flow.
  1. Complete Facebook authorization and confirm access.
  2. Verify that all of the account's ad accounts connected successfully.
  3. Cross-check the account data in the tracker against the “Campaigns statistics” tab in CRM.
Campaigns statistics — verifying connected ad accounts
“Campaigns statistics” — shows whether data is flowing for the newly connected accounts.

Reconnecting on a lost token

Facebook can revoke an access token due to its own security policies or user actions. The account row in the table turns red — that's the signal to reconnect.

Facebook accounts — Checkpoint Required row highlighted in red
A red row with “Checkpoint Required” status — the account's token is invalid.
Click the 🔗 reconnect icon in the same row — after re-authorizing, spend sync resumes automatically.

Integration requirements — Keitaro

For spend updates to work correctly, every condition below must be met:

  • An active Facebook account connection in CRM.
  • An active Keitaro tracker connection in CRM.
  • The Facebook Ad ID is passed into the Keitaro Ad ID parameter from your Tracking configuration (default Sub Id 4).
  • The Facebook campaign name must contain the Keitaro Flow ID.
Campaign-name parsing mechanics

CRM splits the Facebook campaign name by x and looks for a segment prefixed with flow — that's the Keitaro Flow ID.

Format: [Campaign_Name]xflow[Flow_ID]x[Other_params]

PositionExampleFlow ID
At the startflow123xOfferB123
In the middleTestxflow555xUSA555
At the endFBADSxDE_Targetxflow77777777
The Keitaro flow
Don't delete the flow or set its weight to 0 (minimum 1). At the time clicks are created, the flow must have at least one active offer (minimum weight 1). CRM only works with country and sub_id_1–sub_id_30 filters (or / and / accept / reject).

Multi-geo

  • The campaign name contains several flow segments separated by x — one per geo: Creative_01xflow123xflow456xflow789.
  • Each Keitaro flow must have an ACCEPT country = <code> filter — this is how CRM maps a flow to a geo.
  • CRM takes the Facebook country spend breakdown and distributes 10 fake clicks proportionally: UA=$60, PL=$30, DE=$10 → UA gets 6 clicks, PL — 3, DE — 1.
  • If Facebook doesn't return a country breakdown (or spend = $0 everywhere) — clicks are split evenly across all flows.

Integration requirements — Binom

For spend updates to work correctly, every condition below must be met:

  • An active Facebook account connection in CRM.
  • An active Binom tracker connection in CRM.
  • Binom tracking configuration is set up (parameters and conversions).
  • The Facebook Ad account ID is passed into Binom's Ad account ID parameter.
  • The Facebook Ad ID is passed into Binom's Ad ID parameter.
  • The Facebook ad name is passed into Binom's Creative name parameter.
  • The approach code is passed via the ad's URL into Binom's Approach code parameter.
  • The Facebook campaign name contains the Binom Campaign ID and Path Name.
Campaign-name parsing mechanics

CRM splits the campaign name by x and looks for segments prefixed with campaign (campaign ID) and path (path name). Order doesn't matter.

Format: campaign[Campaign_ID]xpath[Path_Name]x[Other_params]

PositionExampleCampaign ID / Path
At the startcampaign1xpathMy pathxOfferB1 / My path
In the middleParam1xpathTraffic2xcampaign173xParam2173 / Traffic2
At the endParam1xpathAppTrafficxcampaign236236 / App Traffic
Binom — Cost type CPC with Auto enabled
Binom's Cost type must be CPC with Auto enabled — otherwise spend and fake clicks won't be computed correctly.
Binom rotations
Don't delete a Path or set its weight to 0 (minimum 1). At the time clicks are created, the path must have at least one active Offer (minimum weight 1). Rule, Path and Offer can't be Inactive. CRM only works with token_1–token_30 filters (is / not).

Multi-geo

  • The campaign name contains the campaign ID and several path segments separated by x — one per geo: Creative_01xcampaign42xpathUAxpathPLxpathDE.
  • Each path in Binom's custom rotation must have a COUNTRY IS <code> rule — this is how CRM maps a path to a geo.
  • CRM takes the Facebook country spend breakdown and distributes 10 fake clicks proportionally: UA=$60, PL=$30, DE=$10 → UA gets 6 clicks, PL — 3, DE — 1.
  • If Facebook doesn't return a country breakdown (or spend = $0 everywhere) — clicks are split evenly across all paths.
Binom — campaign ID example
The campaign ID in Binom.
Binom — path example
A path in the campaign's Paths section.

Sync & fake-click schedule

WhatWhen
Spend updatesevery 30 min (7:00, 7:30, 8:00…) UTC; first run covers the last 7 days, then the last 10 days plus today.
Fake-click creationdaily at 3:00 UTC for the previous day; the first run covers the last 7 days.
Fake-click count10 per ad (Ad ID).
Fake clicks are tagged with the external_id “CRM_FAKE_CLICK” — the same for both trackers, and filtered out of real statistics.

Debugging spend

If an ad has spend but the numbers don't line up, trace one ad through the tracker:

  1. Pick an ad that has spend and note its Facebook Ad ID and the day you're checking.
  2. In the tracker, open a report filtered by the Ad ID token (the one from your Tracking configuration) for that campaign and date, and look at the unique clicks.
  3. No real clicks? There should be fake clicks — CRM generates them daily (3 AM UTC) for ads that have spend but no tracker clicks, so the spend can be attributed.
  4. No fake clicks either? The Facebook campaign name is misconfigured — it must contain the routing markers (Keitaro: flow…; Binom: campaign… and path…). Without them CRM can't build the fake clicks or attribute the spend.
Also check the basics: an active Facebook account, an active tracker connection, the Ad Account ID parameter, and a Buyer Code that matches the tracker campaign group.