Link parameters are query parameters that you add to the URLs of the links you send in email and SMS campaigns. They can help with link tracking and attribution, or for other custom use cases.
In this article
Setting up link parameters
Define link parameters while setting up n email or SMS template:
Navigate to Content > Templates and open a template.
In the template's Details area, click Edit.
Check Link parameters.
-
Define your link parameters.
Save the template.
Common tracking parameters include campaign name, campaign source, campaign
medium, and campaign ID. They're not appended to proofs, because values like
campaignId
are only generated for an actual campaign.
After a user clicks on a link that has link parameters, they'll be taken to a URL that looks something like this:
https://www.example.com?email=docs%40iterable.com&campaignId=39862
Static and dynamic link parameters
Link parameters can reference static or dynamic values.
Static link parameters
Here's a link parameter built from a specific value:
-
Key:
campaignType
-
Value:
discount
This adds a campaignType=discount
parameter to the links in your campaign.
Dynamic link parameters
Here's a link parameter that references dynamic data:
-
Key:
campaignId
-
Value:
{{campaignId}}
This adds a campaignId=1234567
parameter to the links in your campaign (assuming
a campaign ID of 1234567
).
Further reading
To learn more about the various parameters you can reference with a dynamic link parameters, read Universal Merge Parameters.