Meta Ads URL parameters tracking setup | Guides | Metrikia
Beginner2 min

Meta Ads URL parameters tracking setup

Enable precise Meta Ads click tracking by pasting the Metrikia template (mtk_*) into the URL parameters of Meta Ads Manager.

Why configure?

Without this setup, Metrikia captures the Meta Ads click (fbclid) but cannot tell which exact ad drove the conversion. With the Metrikia template, every click carries the exact campaign, ad set and ad identifiers, and Metrikia attributes revenue to the right ad automatically.

Prerequisites

  • Meta Ads account connected to Metrikia (/app/integrations)
  • Admin access on your Meta Ads Manager account

Steps

1. Copy the template in Metrikia

  1. Go to /app/integrations and open the Meta Ads integration.
  2. In the Tracking URL parameters section, click Copy.

2. Paste into Meta Ads

  1. Log in to business.facebook.com and open your ad account.
  2. Go to Account settings > Tracking.
  3. In Account-level URL parameters, click Edit, paste the template, then Save.
  4. To apply the template to existing ads, select them in Ads Manager, click Edit and paste the template into each ad's URL parameters field.

The template goes into the URL parameters field, never into the destination URL.

3. Check

Within 24 hours, new Meta Ads clicks show up in /app/attribution with the exact campaign, ad set and ad. On the integration page, the Compatibility mode banner disappears.

What does the template do?

The template is: mtk_source=meta&mtk_campaign={{campaign.id}}&mtk_adset={{adset.id}}&mtk_ad={{ad.id}}

  • mtk_source=meta: the platform, fixed value.
  • mtk_campaign={{campaign.id}}: campaign identifier.
  • mtk_adset={{adset.id}}: ad set identifier.
  • mtk_ad={{ad.id}}: exact ad identifier. {{ad.id}} is a Meta macro, replaced at click time by the real identifier.

Already using UTM parameters?

Keep them. Append the Metrikia template after an "&". Metrikia reads its own parameters (the ones starting with mtk_), the rest stays yours.

Compatibility mode

If your ads still send the ad identifier through the former template (utm_content) or through another tracker's parameter, Metrikia keeps finding the ad. You will then see a Compatibility mode banner on the integration page and a Metrikia tracking template item in data health: attribution works, but the source and channel depend on how your UTMs are named. Paste the Metrikia template to make it reliable.

Common problems

  • "Tracking still does not work": the change only applies to new clicks. Older clicks keep their current attribution.
  • "I still see the Compatibility mode banner": it is based on the clicks of the last 7 days. It disappears as soon as one click carries the Metrikia template.
  • "The template shows up as is in my URLs (with the braces)": the platform did not expand its macros. Make sure the template is pasted in the tracking field named below, not in the destination URL.

Missing a feature? Suggest it in Ideas and Roadmap (in Settings). A technical issue? Use Report a bug from the help menu.

To go further, check out our blog, the documentation or contact support.

Ready to take action?

Create your Metrikia account and apply this guide in minutes.