Set up Facebook Web
Facebook Web is an ad network integrated with Adjust. Our integration lets Facebook Web receive attribution and in-app event data through automated callbacks.
In this article, learn how to set up measurement with Facebook Web for your app. This includes activating the integration, creating a campaign link, and choosing what data Adjust can share with Facebook Web.
Before you begin
Requirements
- Admin, Editor, or Custom Editor permissions in Adjust.
- Adjust SDK v4.0.0 and later to map SDK parameters to Facebook Web parameters. Follow the guides linked below to use this feature.
iOS | Android | Windows | Unity | React Native | Flutter | Adobe Air | Cordova | Marmalade | Xamarin | Cocos2d-x | Titanium | Corona
Select Facebook Web and your app in Campaign Lab
- Under Campaign Lab, select Partners.
- Select New partner > Facebook Web. Select Next to move to the next screen.
- In the App selection screen, choose the app for which you want to create the link, and enable the integration to share data with Facebook Web.
- Select Next.
Enable data sharing
Enable data sharing to activate the integration with Facebook Web. To enable data sharing:
- Enter the Pixel ID and Access Token.
- For help finding your credentials, contact your Facebook Web representative.
Once you enable data sharing with Facebook Web, Adjust automatically sends Facebook Web the following data, by default:
- install
- event
Set your data sharing options
If you’re working with a multi-platform app with data sharing enabled for multiple platforms, you can:
- Separate data sharing options at the platform-level by selecting Use platform-specific settings.
- Set the same data sharing settings for multiple platforms by selecting Use global settings.
Now, under What will be shared by default?, review the activities that Adjust shares with Facebook Web by default.
- install
- event
Send additional data
Choose the amount and type of data that you want to share with Facebook Web through callbacks. Facebook Web may use this information to optimize performance.
- Under What sources of data do you want to share?, choose the attribution source of the data you are sharing with Facebook Web:
- Data from all attribution sources
- Only data attributed to Facebook Web
In-app revenue (from in-app purchases)
Sharing in-app revenue lets Facebook Web receive revenue amounts along with your revenue event data. You need to map events that generate revenue to share this data.
Map events
Map events that you want to share to the values that Facebook Web can receive. Data for unmapped events is not shared with Facebook Web.
Map individual events
If you have a multi-platform app, you can choose to share different events per platform with Facebook Web. This lets you:
- Set individual events to manage campaign strategies for each platform.
- Customize data sharing per platform.
Under Map events, follow these steps to choose the in-app events you want to directly send to Facebook Web.
- Select Map event.
- In the Adjust event list, choose the Adjust event that you want to share with Facebook Web.
- Under Partner event, you need to select the Facebook Web event that corresponds to the Adjust event.
- For single platform apps and multi-platform apps with data sharing enabled for a single platform only, you map events for that platform only. For multi-platform apps with data sharing enabled for multiple platforms, you can:
- Select Use platform-specific mapping to map separate events at the platform-level or to not map events for certain platforms.
- Select Use global mapping to map the same events for all platforms.
- In the Partner event list, choose or enter a custom event name, that you want to map the Adjust event to.
- For single platform apps and multi-platform apps with data sharing enabled for a single platform only, you map events for that platform only. For multi-platform apps with data sharing enabled for multiple platforms, you can:
- Select Apply.
Now Facebook Web will receive in-app event data for each of your linked events.
Map all events
If Facebook Web supports mapping all events automatically, under Map events, select Map all events. This saves time in mapping individual events.
Now Facebook Web will receive in-app event data for all your linked events.
Map parameters
You usually need to map parameters to share custom data with Facebook Web.
Partner parameters (available in Adjust SDK version 4.0+) let Adjust collect custom data points from your app and send them to Facebook Web. This lets Facebook Web receive custom event details for each of your linked events.
Before adding new partner parameters to the Adjust SDK, make sure no pre-existing partner parameters already fit your requirements.
To share partner parameters to Facebook Web, follow these steps.
- Set up partner parameters within the Adjust SDK.
- Check Before you begin for all SDK development platform links.
- Under Set your data sharing options, select Parameters.
- Under Map parameters, you can specify how you want to send partner parameters defined in the SDK to the network:
- Select Map parameter.
- In the SDK parameter field, enter the name of the SDK parameter you want to share with the network.
- In the Partner parameter field, enter the network parameter that corresponds to the SDK parameter.
If you set up partner parameters within the Adjust SDK without setting up parameter sharing in the dashboard, Adjust forwards the parameters as named in the Adjust SDK.
Configure your link and settings
You have the option to set your:
Create your link and share it with Facebook Web
In the Setup review screen, you can review your choices. You can also go back and make changes to:
- Your selected app
- Data sharing options
- Link structure parameters
- User destinations
- Attribution settings
Select Create link to create your click URL, impression URL, QR code and link token. Creating a link also enables data sharing and the integration with Facebook Web.
Once you’ve created your link, share it with Facebook Web for placement in campaigns.
Link URL example:
https://app.adjust.com/xxxxxx?campaign={{campaign.name}}%20%28{{campaign.id}}%29&adgroup={{adset.name}}%20%28{{adset.id}}%29&creative={{ad.name}}%20%28{{ad.id}}%29&fbclid=ACTUAL_FB_CLICK_ID&fbpid=ACTUAL_FB_BROWSER_ID
All Facebook parameters must be populated by your website before forwarding the user to the relevant store. For more information, see Partner specific setup instructions.
Partner specific setup instructions
Add your own website URL to the Facebook Web Campaign interface and append Facebook's supported macros. For example: {{campaign.name}}, {{campaign.id}}, {{adset.name}}, {{adset.id}}, {{ad.name}}, {{ad.id}}
While redirecting to the website, Facebook will populate their macros and attach the fbclid
and fbpid
parameters automatically. For more details, refer to Facebook's documentation.
You may send additional Customer Information Parameters to Facebook by sending these data points through Partner Parameters. You need to set up the Partner Parameters with the same names stated on Facebook's documentation.
Adjust also supports IPv6 forwarding to Facebook Web. To enable this, set fb_ipv6
as a partner parameter within your Adjust SDK and enable parameter forwarding in Campaign Lab.
The following is a list of supported SDK partner parameters for Facebook Web:
SDK partner parameter | Description |
em | |
fn | First name |
ln | Last name |
ct | City |
st | State |
zp | Zip code |
country | Country |
ph | Phone number |
ge | Gender |
db | Date of birth |
external_id | External ID |
subscription_id | Subscription ID |
fb_login_id | Facebook login ID |
lead_id | Lead ID |
fb_ipv6 | IPV6 address |
Note that some parameters require hashing by Facebook. For a reference on these fields, please refer to Facebook's documentation. If you need further assistance, contact your dedicated Adjust Technical Account Manager or reach out to support@adjust.com.
List of all parameters forwarded to Facebook Web
Facebook Web requires Adjust to send the following parameters (data points) with your callbacks:
Placeholder | Information |
{currency} | Original ISO 4217 currency code sent from Adjust SDK |
{ip_address} | Device IP address |
{revenue_usd} | Revenue, in US dollars |
{user_agent} | Incoming raw user agent |