← Back to Help Center

What the syntax builder does

A UTM parameter like utm_campaign rarely holds one value. Teams pack several dimensions into it: country, product, promotion, season. The syntax builder is where you decide which building blocks go into each parameter and in which order. The builder then assembles every URL the same way, for everyone.

The syntax builder with draggable field pills per UTM parameter
One tab per UTM parameter. The pills are your building blocks; drag to reorder.

Each tab (Campaign Name, Ad Content, Keyword / Term, and the rest) has its own structure. Add a building block with the Add Field button, then drag to arrange: both the field cards and the preview pills can be dragged, and they reorder the same structure. The order in the row is the order in the final URL value.

Global settings

Five controls at the top of the syntax builder apply to the whole configuration rather than to a single parameter: the separator between fields, the multi-select delimiter, the URL Output profile (Full or Lean), the Landing Page URL requirement (Required, Optional, or Off), and the Empty Field Placeholder that keeps an empty optional field's position in generated values. Each has its own behavior and edge cases, so they get their own page: Global settings.

The seven field types

TypeWhat it doesWhen to use it
DropdownThe user picks from preset options.Default choice. Preset options keep the data clean; typos cannot happen.
Text InputFree typing, sanitized against banned URL characters.Use sparingly. Free text is where naming conventions go to die; typos fragment your reports.
ConstantAlways emits the same configured value.Fixed markers, such as a company code that appears in every URL.
DateA date picker.Start dates, flight dates.
Channel-Linked (Brand)Filled automatically from the chosen channel's brand setting.Exactly one per configuration, almost always the brand type field. Full story on the brand type page.
ReferenceMirrors another field's value into a second parameter.When the same value must appear in two parameters without asking the user twice. Single hop only: a reference cannot point at another reference. Setup walkthrough with screenshots: reference fields explained.
Auto ID (generated)Trakr mints a unique 8-character ID for every link, including per row in bulk generation.Pair it with the Trakr API or server-side GTM so one short ID resolves to the link's full context. One per configuration. Details on the Campaign IDs & Lean URLs page.
The Auto ID field type selected on a field card in the syntax builder
Auto ID in the syntax builder: every generated link gets its own 8-character ID.

Dropdown, Text, and Date fields also carry a Required field checkbox. Required fields block the link builder's Next button until they have a value; optional fields can stay empty and simply drop out of the generated value. The other four types fill themselves in, so the checkbox does not apply to them.

Shows on: where a field is asked

Every field has a "Shows on" setting: which wizard step asks the user for its value. "Auto" keeps the field with the parameter it belongs to. Moving a field to the Context step is common for values the user knows first, like country; a field can also move to any other parameter's step or to the Review step. The value still lands in whatever parameter structure contains the field; "Shows on" only changes where the question appears.

The live preview

Live URL preview with sample values
The preview assembles a sample URL from your current structure, separators included.

The preview at the bottom of the syntax builder updates with every change. It uses sample values (curated per field where Trakr recognizes one, otherwise a dropdown's first option), so you can judge readability and length before a single real URL exists. Your actual URLs use the values entered in the builder.

Shortcuts worth knowing

A few interactions in the syntax builder are easy to miss and save real time once you know them:

Custom parameters

Beyond the standard UTM set, the Custom Parameters tab lets you define your own query parameters, each with its own structure and fields. A CRM parameter that repeats campaign dimensions is a typical case, often built with Reference fields so nothing is typed twice. The custom parameters & references page walks through the full setup.

Common questions

Why can I not use any character as a separator?

Some characters have a reserved meaning in URLs. A plus sign is decoded as a space in query strings, and a slash is a path delimiter. Trakr blocks characters that break URLs outright and warns about risky ones. The _ and - characters are the safe defaults.

What happens if I change the syntax after generating URLs?

Existing URLs in your history keep the structure they were generated with. New URLs follow the updated syntax. Your history is a record, never rewritten.

Can a field appear in two parameters?

Yes, with a Reference field: place the original in one parameter and a Reference pointing at it in the other. The user fills the value once and both parameters carry it.

What does the flow validator do?

It checks your configuration for dead ends: fields placed in no structure, structures pointing at deleted fields, reference cycles and missing reference targets, and more than one channel-linked or Auto ID field. Every configuration write through the API and MCP is refused when it reports errors; in the app, the syntax builder's own field checks gate Finish Setup.

Can I make a field optional?

Yes. Dropdown, Text, and Date field cards carry a Required field checkbox. Unchecked, the field can stay empty and drops out of the generated value instead of blocking the flow. To keep an empty field's position in the value, see the Empty Field Placeholder on the Global settings page.

Custom parameters & references

Define your own query parameters and mirror values between parameters with Reference fields.

Campaign IDs & Lean URLs

Auto ID fields, the URL Output setting, and resolving a short ID back to its full link via the API.

Open the App, free, no signup →