How to set up mappings between Facebook and Keitaro?
Mappings combine Facebook spend with Keitaro conversions to calculate real ROI.
What is a mapping?
A mapping is a rule that automatically matches Facebook data with tracker (Keitaro) data based on matching certain parameters.
Why needed:
- See Facebook spend and Keitaro revenue in one place
- Calculate real ROI with all data considered
- Automatic statistics combining
Mapping Types
1. Ad ID Mapping (recommended)
Most accurate method:
Facebook Ad ID: 23851234567890
Keitaro parameter: external_id=23851234567890
→ Data links automatically
How to set up:
- In Facebook campaigns use unique Ad ID
- In Keitaro pass Ad ID via
external_idparameter - System automatically links data by ID match
2. Campaign Name Mapping
Simple method:
Facebook Campaign Name: "Gambling_UK_Desktop"
Keitaro Campaign: "Gambling_UK_Desktop"
→ Link by name match
3. Sub ID Mapping
For split tests:
Facebook: utm_content=sub1
Keitaro: stream_id=sub1
→ Link by Sub ID
4. Combined Mappings
For maximum accuracy:
Date: 2024-01-15
Campaign Name: "Gambling_UK"
→ Link by two parameters
How to Create Mapping
- Open Agency → Mappings
- Click "Create Mapping"
- Select:
- Facebook account (spend source)
- Keitaro integration (conversion source)
- Configure linking parameters:
- Choose mapping type (Ad ID, campaign, etc.)
- Specify fields to match
- Check data preview
- Save and activate mapping
Verifying Mapping
How to ensure mapping works:
- Run ads in Facebook with correct labels
- Wait for sync (5-10 minutes)
- Open Agency → Statistics
- Check that both spend and revenue are visible
- Ensure ROI calculates correctly
What to do if data doesn't link?
- Check that labels in Facebook and Keitaro match
- Ensure both integrations are syncing
- Verify mapping settings
- Review matching logs
- Contact support
More details: