Guides
Traffic sources

Facebook (Meta) Ads integration

Set up Facebook (Meta) Ads tracking in Skro, configure traffic source parameters, and connect your advertising campaigns.

Facebook (Meta) Ads integration gives you the ability to manage and optimize all your ads through the Skro UI.

  • Send conversions to Facebook to feed their AI and optimize audiences.
  • Sync ad spend every 30 minutes to Skro, so you get accurate reporting.
  • Check the delivery status and manage the status of Campaigns, AdSets and Ads directly from Skro UI.
  • Change daily budget directly from Skro UI.
  • Change bid value directly from Skro UI.
  • Dynamic columns: CPM, Link CPC, Link CTR, Impressions, Link EPC and Link Clicks from Facebook to Skro in real-time.

In this guide, you will learn how to set up your campaigns in Facebook (Meta) Ads and Skro so Facebook can pass information to Skro and back with a selected tracking method. This guide does not cover all aspects and options available when creating a campaign on these two platforms. Basic knowledge regarding setting up campaigns in Facebook and Skro is required.

Facebook campaign overview in Skro Ads manager with the Campaign ID tab, delivery status, and performance metrics

Step 1. Set up Facebook integration

  1. Log in to your Skro account.

  2. Open Integrations from the sidebar and select the Traffic sources tab.

  3. In Cost sync · Traffic sources, click Add Integration.

Skro Integrations page with Traffic sources and Add Integration highlighted

  1. In Choose traffic source, select Facebook to start the Facebook (Meta) authorization flow.

Facebook selected in the Choose traffic source integration dialog

  1. Sign in to the account you want to integrate.

  2. Opt in your Pages and click Continue

Meta Integration step 3

  1. Review the requested permissions.

  2. Click Save.

Meta Integration step 4

  1. Click Got it and you will be redirected back to Skro.

Meta Integration step 5

  1. Choose the Facebook (Meta) Ads account you want to integrate and click Integrate.

If you want to integrate multiple ads account, then you will need to integrate them separately. The logic is that 1 integration equals 1 ad account equals 1 traffic source.

  1. Once your selected account is marked Integrated, click Next to open the Conversion API step.

Facebook integration account selection showing Integrated and Integrate account statuses

Step 2. Set up Conversion API

To send conversion events back to Facebook (Meta) Ads, turn on Enable Conversion API.

Conversion events

  1. Click Add Event and enter a Conversion Event Name, such as Purchase. Match the event name configured in Facebook (Meta). When creating a campaign in Skro, select the event you want to send. To track multiple events such as AddToCart and ViewContent, use Custom conversions.
  2. Enable Include conversion payout for events where you want Skro to send conversion revenue and currency to Facebook. The screenshot shows this enabled for Purchase.

Pixels

  1. Click Add Pixel and enter a recognizable Pixel Name.
  2. Enter the Pixel ID you will use in Facebook and in your Skro campaign.
  3. Conversion API Access Token - Go to Facebook Ads Manager and click All Tools → Events Manager → Select your pixel and go to Settings. Scroll down and you will see Conversion API section. Click Generate Access Token.
  4. Copy and paste the token into Skro.

Click Save & Close.

Facebook Conversion API enabled with a Purchase event, payout forwarding, pixel details, and Save & Close

After saving, find your Facebook Ads account under Integrations → Traffic sources.

  • Use Sync Cost to turn cost synchronization on or off.
  • Check Last Synced Time and Error when troubleshooting synchronization.
  • Under Actions, use the pencil to edit the integration, the trash icon to delete it, or the circular arrow to renew its connection. Renew the connection if Facebook has revoked or expired your authorization.

Facebook Ads integration row with Sync Cost enabled and edit, delete, and renew actions

Meta standard conversion events

Use the exact event name, including capitalization, in Conversion Event Name or Traffic source event name when mapping a custom conversion. These standard action names are separate from your tracking URL parameters. Meta standard event reference

Meta event nameWhen to send it
AddPaymentInfoPayment details are entered.
AddToCartAn item enters the cart.
AddToWishlistAn item enters a wishlist.
CompleteRegistrationRegistration finishes.
ContactA prospect contacts your business.
CustomizeProductA product is personalized.
DonateA donation is made.
FindLocationSomeone looks for a business location.
InitiateCheckoutCheckout begins.
LeadA lead is submitted.
PurchaseA purchase completes.
ScheduleAn appointment is booked.
SearchA site search occurs.
StartTrialA trial starts.
SubmitApplicationAn application is submitted.
SubscribeA paid subscription starts.
ViewContentRelevant content or a product is viewed.

For Purchase, Meta requires the event's value and currency. Enable Include conversion payout for a campaign event, or Include payout in postback for a Skro custom conversion, and report the actual revenue to Skro.

Map Skro custom events to Meta

Keep the incoming ce values used by your website or affiliate network and configure an outgoing name for Meta. The examples below require a mapping; Skro does not infer these aliases automatically.

Incoming Skro ce exampleMeta event nameAction
salePurchaseCompleted purchase.
leadLeadLead submission.
signupCompleteRegistrationCompleted registration.
checkoutInitiateCheckoutCheckout started.
cartAddToCartItem added to cart.
content_viewViewContentContent viewed.
trialStartTrialTrial started.
subscriptionSubscribePaid subscription started.
  1. Under Custom conversions, add the incoming value, such as sale, to the event's Event names. Enable Send postback to traffic source, and enable Include payout in postback when forwarding revenue.
  2. Edit the Facebook traffic source. Keep Disable postbacks for custom conversions off. If Only allow selected custom conversions is enabled, include this event in that list.
  3. Enable Map custom conversion event names, select the Skro custom conversion, and enter Purchase in Traffic source event name. Use Add mapping for additional events and save.

For example, this postback records the internal sale event. With that mapping, Skro forwards Purchase to the Meta pixel selected on your campaign:

https://skrotrack.com/postback?clickId=SKRO_CLICK_ID&ce=sale&payout=29.00&payoutCurrencyCode=USD

Use a real Skro click ID and revenue, plus the protection token if required. Without ce, Skro uses the campaign's selected conversion event. If the incoming event already uses the desired Meta name, keep that same name. See custom conversion setup.

Step 3. Associate integration with your traffic source

  1. Open Traffic sources from the sidebar and click Create.

Skro Traffic sources page with Create highlighted

  1. In Choose your traffic source, select the Facebook template.

Facebook template in the Choose your traffic source dialog

  1. In New traffic source, choose a Workspace and enter a recognizable Name. Under Ad account integration, select the Facebook ad account connected in Step 1.

New Facebook traffic source with source details, conversion postback options, and the connected ad account

  1. Leave Enable postback off for Facebook. Conversion API forwarding uses the linked integration configured in Step 2. Configure the custom conversion filters or event-name mapping only if your setup requires them.

  2. Review the prefilled Tracking parameters. Keep External ID mapped to fbclid and retain the template's ad, ad set, and campaign mappings, including ad_id, adset_id, and campaign_id with their corresponding Meta macros.

Facebook tracking parameters with fbclid as External ID and prefilled ad, ad set, and campaign macros

  1. Click Create source.

Facebook tracking parameter mapping

This table matches the Skro Facebook template shown above. The URL parameter is the key Skro reads; the macro supplies its value. Custom field numbers refer to this template's reporting groups.

Skro fieldURL parameterMeta macro or valueWhat it records
External IDfbclidMeta-generated click reference; leave the template placeholder emptyExternal click reference for attribution and conversion matching.
Custom 1 · Ad IDad_id{{ad.id}}Ad ID.
Custom 2 · Ad Namead_name{{ad.name}}Ad name.
Custom 3 · Adset IDadset_id{{adset.id}}Ad set ID.
Custom 4 · Adset Nameadset_name{{adset.name}}Ad set name.
Custom 5 · Campaign IDcampaign_id{{campaign.id}}Campaign ID.
Custom 6 · Campaign Namecampaign_name{{campaign.name}}Campaign name.
Custom 7 · Placementplacement{{placement}}Ad placement.
Custom 8 · Site Source Namesite_source_name{{site_source_name}}Source platform.
Custom 9 · Gender (optional)genderA manual value such as m or fYour configured campaign label; not a dynamic Meta macro.
Custom 10 · OSNot set in this templateOptional; configure only when you have a supported valueExtra reporting dimension.
CostNot set in this templateImported through the connected integration with Automatic cost trackingAd spend.

Meta attaches fbclid to eligible ad-click URLs. Keep it as External ID in Skro, preserve the incoming value, and do not substitute a fixed ID or invent a {{fbclid}} macro. See Meta's ClickID documentation.

If you use gender, replace the {gender} placeholder in the example links with your chosen value or remove that parameter. It is optional. The Skro-generated trck token in Direct URLs identifies the Skro campaign and route; it is separate from fbclid and from the Skro {clickId} token passed to an offer for postbacks.

The integration is ready. Continue by creating a campaign for Facebook (Meta) Ads.

Step 4. Create a Campaign in Skro

(OPTIONAL) Add your landing page as (pre-lander) before your actual offer page.

  1. Go to Landings and click Create.

  2. Select a Workspace under Landing details.

  3. Enter a Name for your landing page and choose the country if needed.

  4. Enter your page address in Landing URL. Add tracking tokens if your page needs them.

  5. Under Offer links, copy the Random offer link or Specific offer link for your setup and use it for the call-to-action buttons on your landing page.

  6. Click Create landing.

Skro New landing form with the Landing URL, Offer links, and Create landing button

Add your offer(s).

  1. Go to Offers and click Create.

  2. Select a Workspace under Offer details.

  3. Enter a Name for the offer and choose the country if needed.

  4. Enter the destination in Offer URL. To match postback conversions to visits, pass the Skro {clickId} token through the parameter your affiliate network expects. The screenshot uses ?s2={clickId}; use your network's required parameter name.

  5. Select the appropriate Affiliate network and review its Postback URL.

  6. Click Create offer.

Skro New offer form passing clickId through s2 with an affiliate network and Create offer button

The screenshots use localhost for testing. Use your configured production tracking domain for offer links and postback URLs.

Create campaign

  1. Click New Campaign. Under Campaign details, enter a Campaign name, select a Workspace, and choose the country if needed. You can also add tags.

  2. Select the Facebook Traffic Source linked to your ad account. To send conversion events back to Meta, choose the Conversion Event Name and Conversion Pixel configured in your integration. The screenshot uses Purchase.

  3. Select your Tracking domain and set Cost model to Automatic to import ad spend from the connected integration. Click Continue.

Facebook campaign setup with campaign details, traffic source, conversion event, pixel, tracking domain, and Automatic cost model

  1. In Destination, select Build flow to configure the campaign's landings and offers.

  2. Give the default path a recognizable name. For a landing page followed by an offer, leave Use only offers off, select the page under Landings, and select the destination under Offers. Adjust weights if you add more landings or offers.

  3. Click Create campaign. When editing an existing campaign, the button is Save changes, as shown in the screenshot.

Campaign destination with Build flow selected and a path containing a landing page and offer

  1. Open Campaign links after saving. Choose Redirect or Direct according to how you want to record visits.

  2. For Redirect, expand Campaign tracking URL and copy the Campaign URL for your ad. Skro records the visit before sending the visitor to your landing page. This method does not require the direct tracking pixel on that page.

Campaign links with Redirect selected, the campaign tracking URL, and landing page button links

  1. For Direct, expand Choose your landing page, select the landing, and copy its generated Landing URL with the tracking parameters. Expand Install the landing page pixel and add the supplied script to that page's <head> section. Use the generated landing URL for your ad setup.

Campaign links with Direct selected, the generated landing URL, and landing page pixel instructions

  1. For either method, expand Landing page buttons and copy the appropriate click URL into your landing page's call-to-action buttons. The random offer link uses the offers and weights configured in your path; a specific offer link such as /click/1 selects an offer by its position.

  2. Expand Conversion tracking and configure how your affiliate network or website reports conversions to Skro. For a postback, map the network's click ID and payout macros to the Skro parameters. Use the JavaScript or image pixel option if that is how your website reports conversions.

Step 5. Create a Campaign in Facebook (Meta) Ads

  1. There are multiple campaign types that you can create with Facebook (Meta) Ads. Campaign types determine how your ad will be promoted.

  2. In order to create a Facebook (Meta) ad campaign, please follow the steps below:

  3. Sign in to your Facebook (Meta) ads manager account.

  4. Create a new campaign.

  5. Select your campaign type, tracking event, pixel, audience, placements, budget etc.

Direct Tracking Example

The complete direct tracking URL that you have copied from Skro should look like this:

https://example.com/sales-page?trck=eyJjcGlkIjoiZDdjOTllNDAtNWVjOS00NjZjLWI1MmMtZTk1YjM3NTViNDY3IiwiciI6MCwicCI6MCwibCI6MH0=&ad_id={{ad.id}}&ad_name={{ad.name}}&adset_id={{adset.id}}&adset_name={{adset.name}}&campaign_id={{campaign.id}}&campaign_name={{campaign.name}}&placement={{placement}}&site_source_name={{site_source_name}}&gender={gender}
  1. On the ad level you have to provide your landing page URL as your business website. Do not include any tracking parameters at this point, provide the plain URL.

https://example.com/sales-page

Setup Facebook (Meta) Campaign

  1. Paste the part of the direct tracking URL that you have copied from Skro that starts after the ? character in the URL Parameters text field.

  2. If you are doing ads by gender, then you can define your gender value manually to feed Facebook Ads AI. If do not want to use this parameter then just remove it.

Male traffic only: &gender=m

Female traffic only: &gender=f

trck=eyJjcGlkIjoiZDdjOTllNDAtNWVjOS00NjZjLWI1MmMtZTk1YjM3NTViNsY3IiwiciI6MCwicCI6MCwibCI6MH0=&ad_id={{ad.id}}&ad_name={{ad.name}}&adset_id={{adset.id}}&adset_name={{adset.name}}&campaign_id={{campaign.id}}&campaign_name={{campaign.name}}&placement={{placement}}&site_source_name={{site_source_name}}&gender=f

Setup Facebook (Meta) Campaign

Redirect Tracking Example

The complete Redirect Tracking URL that you have copied from Skro should look like this:

https://skrotrack.com/campaign/399fb9ed-fd0d-4c23-9e8d-ba10d5a84549?ad_id={{ad.id}}&ad_name={{ad.name}}&adset_id={{adset.id}}&adset_name={{adset.name}}&campaign_id={{campaign.id}}&campaign_name={{campaign.name}}&placement={{placement}}&site_source_name={{site_source_name}}&gender={gender}
  1. On the ad level you have to provide your campaign tracking link. Do not include any tracking parameters at this point, provide the plain URL.

https://skrotrack.com/campaign/399fb9ed-fd0d-4c23-9e8d-ba10d5a84549

Setup Facebook (Meta) Campaign

  1. Paste the part of the redirect tracking URL that you have copied from Skro that starts after the ? character in the URL Parameters text field. You can delete the ? mark.

  2. If you are doing ads by gender, then you can define your gender value manually to feed Facebook Ads AI. If do not want to use this parameter then just remove it.

Male traffic only: &gender=m

Female traffic only: &gender=f

ad_id={{ad.id}}&ad_name={{ad.name}}&adset_id={{adset.id}}&adset_name={{adset.name}}&campaign_id={{campaign.id}}&campaign_name={{campaign.name}}&placement={{placement}}&site_source_name={{site_source_name}}&gender=f

Setup Facebook (Meta) Campaign

  1. When you are ready with your ad set up, then click Publish.

Congratulations, you have successfully set up tracking of Facebook (Meta) traffic with Skro. Each time a visitor clicks on your ad, will be directed to your landing page with Skro's tracking parameters being passed. On a landing page, the direct tracking script will launch and send an HTTPS request to Skro with information about a visit and other information passed from Facebook (Meta).

Step 6. Additional Conversion API Parameters

Requirements: Facebook Ad Account and Conversion API Integration.

If you need to send additional information via Facebook Conversion API, then you can use the following parameters:

  • firstName - Using Roman alphabet a-z characters is recommended.
  • lastName - Using Roman alphabet a-z characters is recommended.
  • email - User email address.
  • phone - User phone number.
  • zip - Use lowercase with no spaces and no dash. Use only the first 5 digits for U.S. zip codes. Use the area, district, and sector format for the UK.
  • fbLoginId - The ID issued by Meta when a person first logs into an instance of an app. This is also known as App-Scoped ID.
  • fbp - The Facebook browser ID value is stored in the _fbp browser cookie under your domain. Example value: fb.1.1596403881668.1116446470
  • sourceDomain - It is used if you want to hide your real source domain. By default it is used your landing or offer domain as source domain and this info is sent back to Facebook.
  • eventId - You can send your Event ID if you want to avoid duplication. For example, if you are using Meta JS Pixel and Conversion API together and both fires the same event.

Example postback URL with additional parameters:

https://skrotrack.com/postback?clickId=ancdh2udspoc73cjodf0&payout=10&firstName=John&lastName=Toe&[email protected]&zip=12345&fbLoginId=1.1.mylogin&fbp=fb.1.1596403881668.1116446470&sourceDomain=whitepage.com&eventId=Jdda88dsa90gf77g8fd9g

Step 7. How to optimize Facebook (Meta) campaigns, adsets and ads?

  1. Go to Ads Manager.

  2. Double-click your campaign name.

Skro Ads manager campaign list with a Facebook campaign and its visits, cost, revenue, and profit

  1. Use Group By select boxes and select the following values:
  • Group By 1: C5: Campaign ID
  • Group By 2: C3: AdSet ID
  • Group By 3: C1: Ad ID
  1. In the current view you can now optimize your Facebook campaigns directly from Skro UI. It means that you can turn ON/OFF Facebook campaigns, change campaign budget and see dynamic columns from Facebook in real-time.

Facebook campaign overview in Skro Ads manager with the Campaign ID tab, delivery status, and performance metrics

  1. Double-click your campaign name or select the C3: Adset ID tab above the table to open the ad set view.

  2. Use Off/On to pause or activate an ad set. Where available, select the pencil icon under Ext. Daily Budget to edit its budget. Check Ext. Delivery Status and the external metric columns alongside your Skro reporting.

Facebook ad sets in Skro Ads manager with status controls, delivery status, and editable daily budgets

  1. Double-click an ad set name or select the C1: Ad ID tab to open the ads view. Use the row checkboxes to select multiple ads when needed.

  2. Use Off/On to pause or activate individual ads and review their Ext. Delivery Status and external metrics.

Facebook ads in Skro Ads manager with individual status controls and delivery status

An ad's switch can be on while its delivery status shows Campaign Paused or Ad Set Paused. Check the parent campaign and ad set status when an enabled ad is not delivering.

Manage multiple campaigns

  1. For example, if you have multiple ad accounts and running like 50 campaigns on each. Then you can optimize all campaigns in 1 single view, if you select 1 traffic source from toolbar.

  2. Do not select any campaign from Ads Manager view. Just click the C5: Campaign ID tab (or any other tab) above the table to move into that view.

Skro Ads manager with Facebook selected under Optimize by traffic source and campaign, ad set, and ad tabs highlighted

  1. Optimize all your AdSets in one view.

Facebook ad sets across campaigns in Skro with status controls, delivery status, and editable daily budgets

Tree view optimization

  1. Go to Ads Manager and select Tree on toolbar.

  2. Double-click your campaign and you will be redirected to Reports view.

  3. Use Group By select boxes and select the following values:

  • Group By 1: C5: Campaign ID
  • Group By 2: C3: AdSet ID
  • Group By 3: C1: Ad ID
  1. Just drill-down your campaigns and adsets and start optimizing.

Facebook campaign, ad sets, and ads expanded in Skro Ads manager Tree view with status controls and performance metrics

Verify the setup

Open the generated campaign URL and check that the visit appears in Skro. Confirm that traffic source macros resolve to actual values. If you send conversions back to the source, verify a test conversion in both systems.

Troubleshooting

If data is missing, check the selected workspace, integration, campaign, and reporting date range. Compare parameter names and macro values with the examples in this guide before repeating the test.

Need help with this guide? Contact Skro support.

On this page

Need help? Contact support ↗