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=emailorutm_source=newsletter. - Dynamic values use macros that are replaced when the mailing content is prepared, such as
subscriber_id={$subscriber.id}oremail={$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:
| Level | Where to configure | Applies to |
|---|---|---|
| Global | Admin > Settings > URL Parameters | All mailing content links |
| Resource | A resource's Email Settings > URL Parameters | Messages sent from that resource |
| Message | A message's URL Params button while creating or editing content | That message or split variant |
| Auto Responder | An auto responder's URL Params button | That auto responder |
| Auto Responder Variation | A variation's URL Params button | That variation |
How Parameters Are Applied
When mailing content is prepared for sending, OptiPub combines URL parameters in this order:
- Global parameters
- Resource parameters, when the message is based on a resource
- 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:
| Source | Parameters |
|---|---|
| Global | utm_source=optipub, utm_medium=email |
| Resource | utm_source=resource-newsletter |
| Message | utm_campaign=may-launch |
The final links use:
utm_source=resource-newsletter&utm_medium=email&utm_campaign=may-launchThe resource's utm_source overrides the global utm_source, while the global utm_medium and 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=emailutm_source=optipubplatform=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.
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-articlecontent_type=articlenewsletter=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 both global 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=1and the final configured URL parameters include:
utm_source=new&utm_medium=emailthe sent link becomes:
https://example.com/path?keep=1&utm_source=new&utm_medium=emailRelated Pages
Updated about 1 hour ago
