Skip to content
Dericson Calari
Back to the blog
Capa do artigo: Tutorial UTMs Facebook: How to Configure URL Parameters in the Meta Ads Step by Step

Tutorial UTMs Facebook: How to Configure URL Parameters in the Meta Ads Step by Step

Learn the full step by step to configure UTMs in Facebook Ads using the 'Build a URL parameter' tool. Here’s how to create custom parameters and avoid common mistakes to track campaigns accurately.

Foto de Dericson Calari

Published on9 min read

If you are looking to improve the first-party data collection and the analysis of your ads, understand how to configure the UTMs on Facebook Ads It is fundamental. In this practical guide, Dericson Calari, CEO of the Agency PalmUP, shows the definitive step-by-step to create URL parameters, using features such as dynamic fields and custom parameters, as well as tips to avoid the most common errors. The objective? Ensure that each click is accurately tracked, powering your reports in Google Analytics and other data intelligence tools.

The reference video above takes a detailed tour of the UTMs setting up directly in the Facebook Ads Manager, highlighting both the practicality of the ‘Build a URL parameter’ tool and best practices to ensure clean and reliable data in your campaigns.

What are UTMs and why use them on Facebook Ads?

UTM (Urchin Tracking Module) are small parameters added to the end of URLs to track the source, middle, and details of traffic in digital campaigns. In the context of Facebook Ads, using them correctly lets you know exactly where access and conversions come from, optimizing investment in paid media and facilitating strategic decision-making.

  • Identify the campaigns, sets, and ads that generate results.
  • Evaluate performance in different positions (Feed, Stories, Messenger, etc.).
  • Integrate Facebook data with Google Analytics and other platforms.
  • Facilitate automation and data intelligence for remarketing and funnels.
“UTMs are essential for those who want to track each step of the funnel and correctly assign the results of digital campaigns.

How to access the UTMs setting in Facebook Ads

The process of setting up UTMs on Facebook Ads is done at the ad level, where you set the target link for your campaign. Facebook offers the 'Build a URL parameter' feature, a visual tool that makes it easy to work and minimizes errors.

Step by Step: Accessing the UTMs Setup in the Meta Ads

01

Step 1

Open the Ads Manager and select your campaign or create a new one.

02

Step 2

Advance to the ad level (where you enter the destination link).

03

Step 3

Paste the URL of your website in the 'URR of the site' section.

04

Step 4

Below, click on 'Build a URL parameter' (blue text).

By clicking 'Build a URL parameter', a window will open for you to fill in the UTM fields in a structured manner. This avoids common mistakes and streamlines the process, especially for those who work with multiple campaigns.

Filling in the fields: standard UTM and custom parameters

In the configuration form, you will see four main fields for UTMs: Source (utm_source), Medium (utm_medium), Campaign name (utm_campaign) and Campaign Content (utm_content). A utm_term, although it does not appear by default, it can be added manually to track specific information such as keywords or targeting terms.

  • utm_source: Identifies the origin of traffic (e.g. facebook, instagram, messenger).
  • utm_medium: Indicates the middle of the ad (e.g. cpc, social, stories, feed).
  • utm_campaign: Campaign name for grouping (e.g. black_friday, leadgen2024).
  • utm_content: Differentiates ads or creatives (e.g. video1, imageA, copyB).

To add a utm_term, click 'Add custom parameter' and enter the desired name and value. This is useful for tracking audiences, creatives, or specific keywords, even if Facebook doesn’t use search terms like the Google Ads.

“Use dynamic parameters of Facebook, such as {{ad.id}} or {{placement}}, to automate the completion of UTMs as per each ad.

Practical example of configuration

Imagine that you are promoting a campaign to capture leads for an e-book. Its configuration can be:

  • utm_source: {{site_source_name}} (identifies Facebook, Instagram, etc.)
  • utm_medium: {{placement}} (Feed, Stories, Messenger, etc.)
  • utm_campaign: ebook_leads2024
  • utm_content: videoA_vsl
  • utm_term: public_lookalike_1%

Key Dynamic Facebook Parameters for UTMs

Dynamic parameters allow each ad to automatically fill your UTMs with relevant data. Here are some of the main ones:

  • {{ad.id}}: Ad ID.
  • {{adset.id}}: Ad set ID.
  • {{campaign.id}}: Campaign ID.
  • {{site_source_name}}: Platform source (FB, IG, AN, MSG).
  • {{placement}}: Ad position (feed, stories, etc).

These parameters are inserted between double keys, exactly as shown above, and are replaced by the corresponding value when the ad is displayed.

Checklist: Best Practices for Configuring UTMs on Facebook

Always use dynamic parameters for automation.
Do not exceed the limit of 255 characters by parameter.
Avoid very long names for campaigns or ads.
Keep the standard of nomenclature consistent.
Include utm_term only when it makes sense for your funnel.
Review each field before saving the ad.
Test the final link to ensure that UTMs appear correctly.

Common errors in UTMs configuration and how to avoid

Even with Facebook’s tool, some errors are frequent and can compromise the first-party data collection of the campaigns. Here's how to avoid them:

  • Exceed the limit of 255 characters in a custom parameter.
  • Leave mandatory fields blank.
  • Inconsistency in the nomenclature (e.g. facebook vs. Facebook vs. fb).
  • Create duplicate or conflicting parameters.
  • Do not test the final link after saving the ad.

Always review each field before publishing, and if possible, use a URL shortener or preview tool to ensure that UTMs are being applied correctly.

“Avoid copying and pasting parameters from other campaigns without reviewing: a small error can invalidate the entire first-party data collection.

How to analyze UTMs data in Google Analytics

Once you’ve set up UTMs correctly, it’s time to analyze the results in Google Analytics. The parameters will be captured automatically, allowing you to segment the accesses by campaign, origin, medium, content and term.

  • Access the Acquisition menu in your Google Analytics.
  • Choose 'Campaigns' to view segmented data.
  • Use filters to cross-reference information from utm_source, utm_medium, utm_campaign, utm_content and utm_term.
  • Create custom dashboards to make it easier to view the data important to your business.

In Google Analytics 4 (GA4), the UTM parameters continue to work, but the path to analysis may change. Make sure you set up events and conversions to keep track of the full funnel.

UTMs on Facebook Ads vs. Google Ads: main differences

While the Google Ads uses a utm_term mainly to store keywords, in Facebook Ads this field can be adapted to other segmentations, such as audience name, type of creative or any information relevant to your business.

UTMs on Facebook Ads X UTMs no Google Ads

Facebook Ads
utm_term for custom segmentations
Dynamic positioning parameters
Ideal for multiple channels (FB, IG, Messenger)
Google Ads
utm_term for exact keywords
Automatic campaign parameters
Main focus on search and display

Customization of UTMs for Facebook Ads allows you to more granularly track different user paths, especially in cross-platform campaigns.

How to add URL parameters manually

If you prefer, you can manually assemble the sequence of UTMs and paste directly into the URL field. Just add '?utm_source=facebook&utm_medium=social&utm_campaign=campaign2024&utm_content=ad at the end of your link. Separate each parameter with '&'.

  • Do not use a question mark if the link already has parameters.
  • Review if all parameters are separated by '&'.
  • Avoid special spaces and characters.

Despite being an alternative, the recommendation is always to use Facebook's 'Build a URL parameter' tool to minimize errors and ensure the correct filling of dynamic fields.

Advanced tips: UTMs for automation, remarketing and complex funnels

By mastering the UTMs configuration, you can integrate them into automation, advanced segmentation, and remarketing strategies. For example, by tracking which creatives or audiences convert best, you can create custom audiences or adjust bids in real time.

“With well-configured UTMs, the data intelligence of your traffic operation evolves to another level.

FAQ: Frequently asked questions about UTMs on Facebook Ads

1. Do I need to use UTMs in all my ads?

Yes, it is recommended to use UTMs in all ads to ensure first-party data collection accurate and identify which campaigns, sets or ads generate results.

2. What happens if I go beyond the limit of 255 characters in a parameter?

Facebook may truncate or not correctly record the surplus parameter, undermining the first-party data collection. Keep names short and standardized.

3. Can I edit the UTMs of an already published ad?

Yes, you can edit the URL parameters of active ads, but remember that this can create fragmentation in reports between different periods.

4. How to track campaigns of WhatsApp using UTMs on Facebook?

Add UTMs in the redirect links to the WhatsApp and use a tracking solution, as explained in the post Message Pixel Tutorial: How to Create Message Pixel in the Meta Ads Step by Step.

5. Is it possible to view UTMs in Facebook’s own reports?

No, Facebook Ads reports don't display UTMs. They are read by analytics tools such as Google Analytics, Hotjar, N8N and CRMs.

6. Can I use different UTMs for each creative within the same set of ads?

Yes, it is highly recommended to differentiate the utm_content or add custom parameters to track the performance of each creative individually.

7. Do dynamic parameters work for all ad types?

Most ad formats support dynamic parameters, but always test before, especially in special goal campaigns like WhatsApp or Messenger.

8. How do you ensure that UTMs are working properly?

Click the ad link in preview mode and make sure the UTMs appear correctly in the URL. Also monitor in Google Analytics to confirm the capture of the data.

Conclusion: UTMs as a competitive differential in paid traffic

Mastering the configuration of UTMs in Facebook Ads is a game-changer for traffic managers who want to raise the accuracy of their reports and leverage results. By following the step by step presented by Dericson Calari, you guarantee first-party data collection smart, avoids mistakes and creates a solid foundation for data-driven decisions. Try, test different approaches, and integrate UTMs into the routine of all your campaigns to reap increasingly consistent results.