Facebook Ads marketing automation
When you run ads with Facebook Ads, you may want to see whether clicks on your ad led a customer to take a certain action, such as a purchase on your website, calling your business, or downloading an app.
Most of the users use Facebook Pixel to track online conversions from the website.
Unfortunately, with this solution you are limited to default Facebook attribution models which don’t support deduplication with other channels and have other limitations.
Also, some businesses might find themselves in a situation where there is not enough final conversions to properly optimise campaigns due to the “Limited Learning” problem:
In this case you will be able to replace final conversions with a SegmentStream Score which provides much more signals for Facebook algorithms to optimise faster.
This guide explains how to use SegmentStream’s external attribution to automate Facebook Ads campaign bidding and budget allocation strategies as well as how to solve “Limited Learning” problem if you don’t have enough conversions.
Before you begin
- You should be subscribed to SegmentStream enterprise plan to use this feature.
- Make sure that BigQuery is connected to SegmentStream.
- Make sure you have the Facebook pixel correctly implemented in your website. We recommend that you use the same pixel for your browser and server events.
- Make sure you website domain name is verified by Facebook to enable Aggregated Event Measurement.
Prepare data for import
Firstly, you need to make sure that an attribution table with the following format is prepared on a daily basis inside your Google BigQuery:
date- the date when conversion happened (good to use for partitioning);
fbc- Facebook click identifier. You can find more information about ths paramer here;
fbp- Facebook Pixel cookie id. Sending this parameter may increase conversion stitching accuracy. You can find more information about ths paramer here;
event_time- exact time of the conversion with a timezone;
event_id- a unique event identifier responsible for the deduplication (i.e. session_id, hit_id or other unique identificator);
value- how much value (i.e. revenue/profit) is attributed to the click;
currency- the currency of the attributed conversion value in the ISO 4217 format;
If you use SegmentSteam’s AI-driven multi-touch attribution - this table will be prepared for you by the implementation team.
Connecting Facebook Ads to SegmentStream
- Inside the admin panel go to Data Destinations page and click Add Data Destination.
- Choose Facebook from the list.
- Click Authenticate with Google and go through the authentication flow.
- Enter you Facebook Pixel ID (can be found inside the Facebook Events Manager)
- Enter the name of the BigQuery table with your attribution into BigQuery source table name (if you are using SegmentStream’s AI-driven multi-touch attribution - ask the name from your implementation manager).
- Enter Event name of your conversion (i.e. “Purchase Score”).
- Click Save.
Once connected, make sure you’ve started receiving server-side SegmenetStrem events inside the Facebook Event Manager:
Note! It might take up to 24 hours before you see the first batch of events from SegmentStream.
Creating a custom conversion inside the Businss Account
- Go to Facebook Events Manager and choose your Facebook Business Account (make sure you choose a Business Account, not an Ad Account).
- Click on Custom conversions menu item.
- Click Create Custom Conversion:
- Set conversion Name (i.e. “Purchase Score”).
- In Data Source select your Facebook Pixel.
- In Conversion Event field select the event you’ve defined inside the SegmentStream admin panel (it might take up to 24 hours for the event to appear after connecting SegmentStream to Facebook).
- Click Create.
Sharing a custom conversion to your Ad Account
- Expand your newly created custom conversion and click Share.
- Select Share with an Ad Account and select your Ad account.
Aggregated event measurement setup
Follow this guide to setup Aggregated Event Measurement for the event you’ve defined inside the SegmentStream admin panel.
Make sure that SegmentStream event has the highest possible priority right below your main conversion event.
Updating campaign settings
- Select the campaign you would like to optimize based on the imported conversions.
- Make sure that Campaign Objective is Conversions:
- In the Campaign Bid Strategy section select either Lowest cost or Cost cap depending on whether you would like to limit your campaign by a daily budget or maximal CPA:
Alternatively, you can use Minimum ROAS strategy if you want to optimise for ROAS.
Note! We suggest avoid using Bid cap strategy as it will not bring any benefit in terms of the optimisation for imported conversions.
- Select your recently created Custom Conversion for a Conversion Event field inside the Conversion section for each Ad Set.
- Adjust your Optimization & Delivery settings for each Ad Set to match your selected Campaign Bid Strategy.
- Save your campaign.
The setup is complete. Now Facebook Ads will start optimizing your campaign based on the conversions you are importing using SegmentStream.
This document was last updated on March 30, 2021. If you notice any gaps, outdated information or simply want to leave some feedback to help us improve our documentation, please let us know!