Tracking templates (in Meta: URL Parameters) and final URL suffixes allow you to add tracking information to the end of a final URL so that you can track the source of an ad click and other important details like the device type, location, and keyword. These can be created at either the campaign or ad group level.
How tracking templates work
Tracking templates typically begin with {lpurl}, which inserts the final URL you've set in the ad. That's followed by a question mark (?) and the parameters you want to track, such as UTM parameters like utm_source, utm_medium, or utm_campaign. Fluency automatically adds the {lpurl}? so you don't need to include it. Parameters are predefined values enclosed in curly brackets, such as {device}. If there are multiple tracking templates defined at different levels, the most specific one is used.
Key guidelines for setting up tracking templates:
Separate multiple parameters with an ampersand (&).
You don't need to add a "?" or "&" before the first parameter.
In cases where a Blueprint has campaigns with multiple partners, such as Google and Microsoft, you can insert utm_source={_partnername} into the tracking template to send the correct information to the respective partner.
Tracking template examples
Tracking template examples
Example (no parameters):
Traffic source: Google
Medium: Ad
Campaign: "campaign"
Tracking template: utm_source=google&utm_medium=ad&utm_campaign=campaign
Example (with parameters):
Landing page URL: http://www.accountdomain.com
Tracking template: utm_source={_partnername}&utm_keyword={keyword}&utm_campaign=pmax
Partner name: Google
Keyword: Weather
Final URL: http://www.accountdomain.com/?utm_source=google&utm_keyword=weather&utm_campaign=pmax
Example (using tags and parameters):
Tracking template: utm_source={_partnername}&utm_medium=cpc&utm_content=dealership_[inventory.make]&utm_term={keyword}
How final URL suffixes work
A final URL suffix is similar to a tracking template but it is used to add parameters to the end of the final URL to track ad click sources and other information. To create a final URL suffix, you can remove the {lpurl}? from a tracking template.
Final URL suffix examples
Final URL suffix examples
Example:
No parameters: utm_source=google&utm_medium=cpc
With parameters: utm_source={_partnername}&utm_medium=cpc&utm_campaign=vla_new&utm_content={creative}
Partner name: Google
Creative ID: 12
The final output: http://www./?utm_source=google&utm_medium=cpc&utm_campaign=vla_new&utm_content=12accountdomain.com
Example: Using tracking templates and URL suffixes
Let's look at an example using both a tracking template and URL suffix:
Tracking Template: utm_source={_partnername}&utm_medium=cpc&utm_campaign={_fcycmp}
Partner name: Google
Campaign name {_fcycmp}: greenplants
Final URL Suffix: fluencyref=fluency&tcdcmpid={fcycmpid}&tcdadid={creative}&tcdkwid={_fcykwid}
Fluency's campaign ID {fcycmpid}: 1234
Creative ID: 21
Fluency's keyword ID {_fcykwid}: 4321
List of tracking template parameters
Expand the rows below for comprehensive lists of general and Fluency-specific tracking template parameters:
General parameters
General parameters
Commonly Used Parameters
{campaignid} - The campaign ID. Use this when you’ve set up your tracking info at the account level and want to know which campaign served your ad.
{adgroupid} - The ad group ID. Use this when you’ve set up your tracking info at the account or campaign level and want to know which ad group served your ad.
{feeditemid} - The ID of the feed-based or legacy asset that was clicked.
{extensionid} - The ID of the asset-based or upgraded asset that was clicked.
{targetid} - The ID of the keyword (labeled “kwd”), dynamic search ad (“dsa”) target, remarketing list target (“aud”), or product partition (“pla”) that triggered an ad.
{loc_interest_ms} - The ID of the location of interest that helped trigger the ad.
{loc_physical_ms} - The ID of the geographical location of the click.
{matchtype} - The match type of the keyword that triggered your ad: “e” for exact, “p” for phrase, or “b” for “broad.”
{network} - Where the click came from: “g” for Google search, “s” for a search partner, or “d” for the Display Network.
{device} - What device the click came from: “m” for mobile (including WAP), “t” for tablet, and “c” for computer.
{creative} - Unique ID for your ad.
{keyword} - The keyword from your account that matches the search query, unless you are using a Dynamic Search ad, which returns a blank value.
{placement} - The content site where your ad was clicked or the matching placement targeting criteria for the site where your ad was clicked.
{target} - A placement category (works with placement-targeted campaigns only).
Note: Parameters with IDs are always numeric.
Fluency-specific parameters
Fluency-specific parameters
{_fcycmpid} - Fluency's campaign ID
{_fcycmp} - Campaign name
{_partnercmp} - Campaign name at partner (if different than in Fluency)
{_fcyagid} - Fluency's ad Group ID
{_fcyag} - Ad group name
{_partnerag} - Ad group name at partner (if different than in Fluency)
{_fcycvid} - Fluency's creative ID
{_fcykwid} - Fluency's keyword ID
Advanced parameters for Search campaigns:
If you run both Google and Microsoft Search campaigns, you can use IF logic should you need specific tracking strings for each provider.{{ifGoogle:exampletracking}}
{{ifMicrosoft:exampletracking}}
Example:
Tracking Template: utm_campaign={_fcycmp}&{{ifGoogle:utm_source=GoogleSearch}}{{ifMicrosoft:utm_source=MicrosoftSearch}}&utm_medium=Search
Only available for Meta ads
{_rcfcycmp} - Campaign name with original capitalization
{_sefcycmp} - Campaign name with standard URL encoding (or )—e.g., space is encoded as %20percent encoding
{_rcpartnercmp} - Campaign name at partner with original capitalization
{_separtnercmp} - Campaign name at partner with standard URL encoding
{_rcfcyag} - Ad group name with original capitalization
{_sefcyag} - Ad group name with standard URL encoding
{_rcpartnerag} - Ad group name at partner with original capitalization
{_separtnerag} - Ad group name with standard URL encoding
Example:
Custom parameter: {_fcycmp}=fluency_brand
Tracking template: campaign={_fcycmp}
The final URL: https://fluency.inc/?campaign=fluency_brand
Note: The tracking template and final URL suffix can contain a combination of both Fluency- and partner-supported parameters.
How to set up tracking templates
Tracking templates in Blueprints
Implementing a tracking template at the Blueprint level allows you to add and manage the parameters in one place. Here's how:
Go to Blueprints in the top menu.
Click on a Blueprint from the list—then choose a campaign, ad group, and/or creative.
Scroll to the correct section for your chosen ad element and complete the following fields:
For a campaign, open the Tracking & Remarketing dropdown, and enter your Tracking Template (in Meta: URL Parameters) and/or Final URL Suffix.
For an ad group, open the Tracking dropdown, and enter your Tracking Template and/or Final URL Suffix.
For a creative, scroll to the Creative Assets section, and enter the URL Parameter (Meta only).
Click Save Changes.
Tracking templates in specific accounts
Go to Manage in the top menu.
Click on an account in the list.
Select a campaign or an ad group, and go to their settings in the top right ("Campaign Settings" or "Ad Group Settings" button).
Enter a Tracking Template and/or Final URL Suffix under the Basic tab (in Meta: URL Parameters).
Click Save.
Note: If the campaign or ad group is linked to a Blueprint, making changes in Manage will lock the field. You will need to unlock the field if you want the campaign or ad group to sync with the Blueprint again.
Tracking in Meta campaigns in Blueprints
In Meta ad groups in Blueprints, tracking templates are referenced as URL parameters. In Fluency, you can configure multiple pixels and track offline activity.
Tracking offline activity
Go to Blueprints in the top menu.
Click on a Blueprint in the list and then select a Meta (Facebook) campaign and ad group.
Check that the Show Advanced Fields toggle in the top-right is turned on. This enables the Tracking & Remarketing fields for editing.
Open the Tracking & Remarketing dropdown, and complete the form fields:
For Conversion Pixel, enter auto to let Fluency choose the pixel, or enter the name of the pixel that launches the conversion event.
For Conversion Event, select an option from the dropdown menu (e.g., PageView).
For Event Datasets, enter auto to let Fluency choose the pixel, or enter the name of the consolidated pixel or offline event datasets.
Note: If you have legacy data sets, you can continue to add the data to your pixels if they exist.