gillish

Add campaign tags with UTM templates

A UTM template is a saved set of campaign values, the utm_ tags that tools such as Google Analytics read. Save a set once, then pick it in as many links as you like. Your posts keep the short address, and the values join only when someone clicks.

Make a template

Make a UTM template

  1. Go to Settings → Link Management, and find UTM templates.

  2. Under New template, give it a Name. Only you see the name.

  3. Fill in what you need, for example Source newsletter, Medium email and Campaign welcome. Leave the rest empty. Term and Content become utm_term and utm_content.

  4. Save the settings. A new empty template appears under it for the next one.

  1. Open the link in Manage Links.

  2. Under Link attributes, pick it in UTM template. The list shows what each template adds.

  3. Click Update link.

With the template above, a click on a link to https://example.com/a goes to https://example.com/a?utm_source=newsletter&utm_medium=email&utm_campaign=welcome. To stop using a template on a link, pick None.

Change or delete a template

Change a value and save, and every link that uses the template follows at the next click. To delete a template, empty its Name and save. Links that used it keep working, without the values.

Which value is used

Each value lands in the address only once. On a plain link, with no A/B test or redirect rule, this decides which one is used when two places give the same value:

  1. A value in the link’s Target URL always stays.
  2. Next comes the Params field on one placed link.
  3. Then the template.
  4. Last comes what a visitor adds, and only with Forward all parameters on. A visitor cannot replace a template’s value, but anything else they add still comes along.

A template also works on an A/B test’s variants, on dynamic redirect rules, on a link with a password, and on an ended link that sends visitors to its target anyway. Templates stay on the site where you made them: they are not part of an export file.

Next, read Put a password on a link.