URL Parameters

URL parameters automatically append tracking values to links in mailing content. Use them for shared reporting fields like UTM parameters, campaign identifiers, source labels, or other link metadata that should travel with email clicks.

Parameter values can be static or dynamic:

  • Static values are entered as plain text, such as utm_medium=email or utm_source=newsletter.
  • Dynamic values use macros that are replaced when the mailing content is prepared, such as subscriber_id={$subscriber.id} or email={$email}.

The URL Parameters form includes a macro selector next to each value field. Use it to choose from available system macros and subscriber variables, or type a static value directly.

OptiPub supports URL parameters at multiple levels:

LevelWhere to configureApplies to
GlobalAdmin > Settings > URL ParametersAll mailing content links
TemplateA template's URL Parameters card on the first step of the template formMessages and auto responders that use that template
ResourceA resource's Email Settings > URL ParametersMessages sent from that resource
MessageA message's URL Params button while creating or editing contentThat message or split variant
Auto ResponderAn auto responder's URL Params buttonThat auto responder
Auto Responder VariationA variation's URL Params buttonThat variation

How Parameters Are Applied

When mailing content is prepared for sending, OptiPub combines URL parameters in this order:

  1. Global parameters
  2. Template parameters, from the template the message or variation uses
  3. Resource parameters, when the message is based on a resource
  4. Message, auto responder, or variation parameters

If the same parameter key appears in more than one place, the more specific value overrides the inherited value.

For example:

SourceParameters
Globalutm_source=optipub, utm_medium=email
Templateutm_content=daily-layout, utm_source=template
Resourceutm_source=resource-newsletter
Messageutm_campaign=may-launch

The final links use:

utm_source=resource-newsletter&utm_medium=email&utm_content=daily-layout&utm_campaign=may-launch

The resource's utm_source overrides both the global and template utm_source, while the global utm_medium, the template's utm_content, and the message-specific utm_campaign are kept.

📘

Inherited parameters are shown for reference in the URL Parameters form. They are not copied into the current item unless you explicitly add a parameter with the same key to override them.

Global URL Parameters

Global URL parameters are the defaults for all mailing content. Configure them in Admin > Settings > URL Parameters.

Use global parameters for values that should apply broadly, such as:

  • utm_medium=email
  • utm_source=optipub
  • platform=optipub

Global parameters can also use dynamic macro values when the value should be personalized or resolved at send time.

If LiveConnect email tracking is enabled, OptiPub also adds the lctg={$lctg} parameter automatically at send time.

Template URL Parameters

Templates can define their own URL parameters on the first step of the template form, below the publication and tag settings. Any template type accepts URL parameters, but only message templates affect sent links: website page templates are not mailing content.

Template parameters are inherited by:

  • Messages sent with the template, whether the content comes from a resource or is written free-style.
  • Auto responder variations that use the template. An auto responder's Template setting is copied to the variations created from it.

Use template parameters for tracking that belongs to a layout rather than to a piece of content, such as utm_content=daily-layout or template=promo-wide.

📘

Changing a template's URL parameters rebuilds every auto responder variation that uses the template, so their links pick up the new values and drop any keys the template no longer sets. Messages that were already created keep the links they were built with.

Template parameters reach the links in the message or variation content. For auto responders, links that are part of the template's own HTML, outside the content area, do not receive URL parameters.

Translated templates start with a copy of the source template's URL parameters. After that, each language version keeps its own set.

Resource URL Parameters

Resources can define their own URL parameters in the resource form under Email Settings > URL Parameters.

Resource parameters are inherited by messages created from that resource, including messages started with the resource's Send Message action.

Use resource parameters when a content item should carry its own tracking context, such as:

  • utm_source=daily-article
  • content_type=article
  • newsletter=morning-brief

Resource parameters can also use macros when the value should be generated dynamically for each recipient.

Message URL Parameters

While creating or editing a message, click the URL Params icon in the content step to configure message-specific parameters.

Message parameters are the most specific layer for a regular message. They override global, template, and resource parameters with the same key.

For split tests, URL parameters are stored per variant, so each variant can use its own tracking values.

Message parameters can be static values or dynamic macro values selected from the macro picker.

Auto Responder URL Parameters

Auto responders and auto responder variations also support URL parameters.

  • Configure parameters on the auto responder when the value should apply to the auto responder generally.
  • Configure parameters on a variation when the value should apply only to that variation.

Variation-level parameters are the most specific layer for that variation.

Existing Link Parameters

If a link already contains a parameter key that OptiPub is going to apply, OptiPub replaces that key with the configured value. Other existing query parameters remain on the link.

For example, if a link starts as:

https://example.com/path?utm_source=old&keep=1

and the final configured URL parameters include:

utm_source=new&utm_medium=email

the sent link becomes:

https://example.com/path?keep=1&utm_source=new&utm_medium=email

Related Pages


Did this page help you?