Link templates
Link templates allow you to append parameters or prepend URLs to all links in an email message.
Link templates are most often used in these following use cases:
- Appending Google Analytics query parameters to all links in a given email message
- Prepending a URL to all links in a given email message
Link templates are an optional feature. If Email Link Templates is missing from the Templates section, reach out to your account manager to turn on the feature.
Creating a link template
You can create an unlimited number of link templates to support your various needs. To create a link template:
- Go to Templates > Email Link Templates.
- Click Create Link Template.
If you are using the older navigation, this page is located at Engagement > Templates & Media > Link Templates.
There are two types of link templates you can create:
When using link templates and Liquid, Liquid must only be added within the body tag to ensure consistent rendering.
Prepend: Create a link template that inserts before a URL
If you want to add a string or URL before the links in your email message, create a new link template and set the Template Position to Before URL. Next, enter a string that will always get prepended to your URL.
A preview section is provided to give you an example of the insertion process.
Append: Create a link template that inserts after a URL
If you want to add query parameters after a URL in your email message, create a new link template and set the Template Position to After URL. Next, enter query parameters (value=something
) to the end of each URL.
You can have multiple parameters appended to the end of a URL.
Using link templates in email campaigns
After your link templates are set up, you can select the template to use in your email.
- HTML editor: Go to the Link Management tab under the Content section. Select Add a Link Template, choose your link template, and select Add.
To access the Link Management tab in the updated HTML email editor, you must have link aliasing turned on. To turn on link aliasing, contact your account manager.
- Drag-and-drop editor: Select Content > Link Management tab. Then, select Add a Link Template. To access link templates in the drag-and-drop editor, you must have link aliasing turned on.
Link templates aren’t applied to plain text. This means Currents may show clicks that don’t include the parameters from the link templates as those clicks may come from the plain text version of the email.
As you add link templates in the Link Management tab, scroll to the right to view the templates you’ve added.
Managing link templates
You can also duplicate link templates. Learn more about creating and managing templates and creative content in Templates & Media.
Archiving templates is not currently available for link templates.
Frequently asked questions
For answers to frequently asked questions about link templates, check out our Templates FAQ page.