Meta setup guide

Track Facebook and Instagram ads, then see profit by campaign, ad set and ad.

3 min readUpdated 11 November 2026

What it is

This guide shows how to connect Meta ads (Facebook and Instagram) to TrafficTaps so each click is recorded with its campaign, ad and placement details.

Why it matters

With the right macros, TrafficTaps can show profit and ROI for each campaign, ad and placement, not only for the whole Meta account. That tells you what to scale and what to switch off.

Step by step

  1. Add the traffic source in TrafficTaps

    Go to Traffic Sources > New and choose Meta from the templates. The parameters below are filled in for you. Check that they match the Meta macros table below.

    New Traffic Source form in TrafficTaps with the Meta (Facebook / Instagram) template selected, showing fbclid as the click ID and the campaign, ad set and ad parameters
    New Traffic Source with the Meta template selected.
  2. Create a campaign

    Go to Campaigns > New, choose this traffic source, add your lander and offer, and save.

  3. Open the campaign's Tracking tab and copy the link. It uses double curly brackets for macros.

    Tracking link (Meta example)
    https://trk.traffictaps.com/c/AbC123?campaign_id={{campaign.id}}&adset_id={{adset.id}}&ad_id={{ad.id}}&placement={{placement}}

    Meta adds its own click ID (fbclid) to every ad link, so you do not need to add a click ID macro.

  4. Paste it in Ads Manager

    In Meta Ads Manager, open your ad and find the Website URL box. You can also use the URL parameters field under it.

  5. Test

    Click your own ad or preview link in a normal browser (not through a VPN). In Reports, a visit should appear, and the values you sent (campaign, ad and so on) should be filled in, not shown as raw macros.

Example

This is the link you paste in Ads Manager, with the campaign code AbC123. Meta fills in the parts in curly brackets when someone clicks your ad:

Example
https://trk.traffictaps.com/c/AbC123?campaign_id={{campaign.id}}&adset_id={{adset.id}}&ad_id={{ad.id}}&placement={{placement}}

After a click, the link that reaches TrafficTaps looks like this:

After the click
https://trk.traffictaps.com/c/AbC123?campaign_id=120210000000001&adset_id=120210000000002&ad_id=120210000000003&placement=Facebook_Mobile_Feed&fbclid=IwAR...

Meta macros

These placeholders are replaced by Meta when someone clicks your ad. Write them exactly as shown, using double curly brackets, like {{ad.id}}.

MacroWhat it gives you
{{campaign.id}}Campaign ID
{{adset.id}}Ad set ID
{{ad.id}}Ad ID
{{campaign.name}}Campaign name
{{adset.name}}Ad set name
{{ad.name}}Ad name
{{site_source_name}}Where the ad was shown, such as Facebook or Instagram
{{placement}}Placement of the ad

Sending conversions back to Meta

Meta uses the Meta Conversion API instead of a postback URL. In your workspace, open Integrations, click Connect with Meta, pick your pixel, and map each conversion event to a Meta event (for example a sale to Purchase, a sign-up to Lead). Turn on test mode first and check the events in Meta Events Manager, then switch test mode off.

Ad cost sync: once Meta is connected, spend for your campaigns, ad sets and ads syncs every 15 minutes.

Common mistakes

  • Wrong brackets. Meta uses double curly brackets, like {{ad.id}}. Anything else is sent as plain text.
  • Adding your own click ID macro. Meta adds its own click ID automatically. You do not need to.
  • Editing the macros. Do not add spaces or change the capital letters.
  • Testing in the ad platform preview only. Some previews do not replace macros. Click a real ad or test link.
  • Using the offer URL in the ad. The ad must point to the TrafficTaps tracking link.

Stuck? Write to support@traffictaps.com with your campaign name and a sample click ID.