Skip to main content
When you run ads, you want to know which campaign and which ad brought each lead, so you can spend more on the ads that work. AskFunnel gives you a short piece of text for each ad platform. You paste it into your ads once, and from then on every lead shows the exact campaign, ad set and ad it came from on its Tracking tab. The text uses the ad platform’s own placeholders. When someone clicks your ad, Meta, Google or TikTok fills them in with the real IDs, and AskFunnel saves them with the lead. What you can do:
  • See the ad behind every lead: the campaign ID, ad set ID and ad ID, where the ad was shown (for example Instagram Stories) and how long before submitting the person clicked.
  • Copy an ID in one click and find that ad in your ads manager.
  • See the ad that first brought someone in, when they come back later from another ad or by typing your link.
  • Check a link before you spend money, with “Test a link”.
Before you start, you need:
  • A published funnel. See Publish, unpublish and restore your funnel.
  • Access to your ads in Meta Ads Manager, Google Ads or TikTok Ads Manager.
  • To read the results, a role that can see leads: Global Admin, Workspace Admin or Contacts Manager.

Important to note

  • Only clicks on ads that carry the tracking text get ad IDs. Add it to every ad you want to track. Leads from before you added it show their UTM tags only, if they had any.
  • In Meta, changing the URL parameters of an ad that is already running can restart its ad set’s learning phase. Add the text when you create an ad when you can.
  • Campaign, ad set and ad IDs are always saved. The platform’s click ID (such as fbclid or gclid) is saved only when the visitor accepts marketing cookies, or when your funnel shows no cookie banner. See Set up cookies and visitor consent.
  • Click IDs are removed from a lead 90 days after the visit they came from. If a person visited twice, each visit’s click IDs go 90 days after that visit. The campaign, ad set and ad IDs and the UTM tags stay with the lead for as long as the lead does.
  • The text adds UTM tags too, so you do not need separate UTM tags on these ads. See Track campaigns with UTM links.
1

Open Tracking links

  1. Click Funnels in the sidebar, then click your funnel.
  2. In the funnel’s menu, click “Settings”. If Integrations is not open, click it.
  3. Under Tracking, click the Tracking links row.
The Tracking group of the Integrations page with the Tracking links row highlightedThe Tracking links panel opens on the right with the tabs Meta, Google and TikTok. Each tab has the text to paste, with “Copy” beside its label, and a short note. “Test a link” is at the bottom. Click the X at the top right when you are done.The text is the same for every funnel, so you only need to set it up once per ad account.
2

Facebook and Instagram (Meta)

  1. On the Meta tab, click “Copy” beside URL parameters.
  2. In Meta Ads Manager, open your ad and scroll to Tracking.
  3. Paste the text into URL parameters. Do not add it to the website URL.
  4. Publish the ad.
The Tracking links panel on the Meta tab, with the URL parameters text and the Copy button beside its label highlightedMeta adds its own click ID (fbclid) to every click, so it is not part of the text.
3

Google Ads

  1. On the Google tab, click “Copy” beside Final URL suffix.
  2. In Google Ads, open Admin, then Account settings, and open Tracking template.
  3. Paste the text into Final URL suffix and save. You can also set it on one campaign, ad group or ad instead of the whole account.
The Tracking links panel on the Google tab, with the Final URL suffix text and its note that mentions Tracking template, and the Copy button beside the label highlightedUse Final URL suffix, not Tracking template. Google loads the tracking template in the background, so anything in it never reaches your funnel. Keep auto tagging on, so Google adds its own click ID.In Performance Max campaigns, Google only sends the campaign ID, so those leads show the campaign but not the ad group or ad.
4

TikTok

  1. On the TikTok tab, click “Copy” beside Destination URL.
  2. In TikTok Ads Manager, open your ad and go to Ad details.
  3. Add the text to the end of your Destination URL, after a question mark (?). If your URL already has a question mark, add the text after an ampersand (&) instead.
In upgraded Smart+ campaigns, replace __CID__ with __ADID_V2__ and __CID_NAME__ with __ADID_V2_NAME__, so AskFunnel gets the ad and not one creative. TikTok adds its own click ID (ttclid).
5

Test a link

  1. Open your ad’s preview in the ads manager and copy the link it opens.
  2. At the bottom of the Tracking links panel, click “Test a link”. The panel changes to Test a link, and you stay in the same panel. Paste the link into the link box, which says Paste your landing link until you type, and click “Check link”.
  3. Check that Campaign ID, Ad set ID (or Ad group ID) and Ad ID show numbers.
  4. To go back to the tabs, click the back arrow at the top left of the panel.
The Test a link panel with a checked Facebook ad link: a green message, the platform Meta, the campaign, ad set and ad IDs and the placementIf a value still shows a placeholder, such as {{ad.id}}, the platform did not fill it in. Test again with the link from the ad preview. A preview link may not have a click ID, because the platform only adds it to real clicks.

See the ad on each lead

  1. Open your funnel’s Leads page and open a lead.
  2. Click the Tracking tab.
Besides where the lead came from (Source, Arrived), the tab lists:
  • Campaign ID, Ad set ID (Ad group ID for Google and TikTok) and Ad ID, each with a copy button.
  • Placement: where the ad was shown, when the platform sends it.
  • Clicked the ad: how long before submitting the person clicked.
  • First visit: the ad or source that first brought the person in, when it is different from the last one.
Click “Show advanced” to see which platforms sent a click ID. On a lead that is more than 90 days past its visit, Click IDs says Removed after 90 days. The ad details above it stay.

Send the ad details to your other tools

The same ad details can go with every new lead to the tools you connect: They are sent only when the visitor allowed analytics cookies, the same rule as UTM tags. Click IDs are never sent to these tools. A lead's Tracking tab showing the source Facebook and the campaign Fall home values Austin, with the rows from Campaign ID to Clicked the ad highlighted: the campaign, ad set and ad IDs, the placement Facebook Feed and the time the person clicked, and the device Mobile, iPhone below them If a lead clicked an ad that does not carry the tracking text, the tab says the platform but not the ad: “This lead clicked a Meta ad, but we don’t know which one.” Click “Open tracking links” in that message to set up your ads.

How do I know it is working?

Run your ad, or open its preview, and submit your funnel with details you will recognize. Open that lead’s Tracking tab. It shows the campaign, ad set and ad IDs of the ad you clicked.

Troubleshooting

The lead clicked an ad that does not carry the tracking text, or the text was added after the click. Add it to that ad. Leads that arrive after that show their ad IDs.
This is expected for Performance Max campaigns. Google only fills in the campaign ID there, and it does not send the ad group or the ad. On a lead, the Tracking tab shows the Campaign ID and no ad group or ad. In Test a link, a missing Ad group ID and Ad ID is normal for these campaigns. For other campaign types, check that the text is in Final URL suffix.
The visitor did not accept marketing cookies, so AskFunnel kept the campaign, ad set and ad IDs but not the platform’s click ID. This is expected. See Set up cookies and visitor consent.
AskFunnel removes a lead’s click IDs 90 days after the visit they came from, so they do not stay on file longer than needed. The campaign, ad set and ad IDs and the UTM tags are kept. A lead’s status can still be sent to Meta after that, matched by the lead’s email and phone, but without the click.
Google has no placeholder for campaign or ad names, so the text sends the campaign ID and the ad ID in the UTM tags too. Use the IDs to find the campaign and the ad in Google Ads.
Need help? Email support@askfunnel.com.