Skip to main content

UTM tags and other query parameters

To minimize the amount of traffic that falls within the "no referrer" category, you can add special query parameters including UTM tags to your links.

Whenever you post a link in social media or send it to someone through email, you can choose to add a special query parameter to the link. When for instance ?ref=<value> query parameter is present, Plausible Analytics will show it as the referral source.

ref, source, utm_source, utm_medium, utm_campaign, utm_content and utm_term query parameters are all valid and supported.

note

All referral sources including UTM and other query parameters are counted only when they start a new session on your site. This is why you don't see all your own visits if you click to test several different UTM tagged links at the same time

For example, here's what you can do when you want to send a newsletter to your subscribers. If you simply link to your site with yourdomain.com, anyone who clicks on it would fall within the "no referrer" category.

But if you link to yourdomain.com?ref=Newsletter anyone who clicks on that will show "Newsletter" as the referrer source. This will allow you to see how many people have clicked on your link in the newsletter.

Here are examples of links with the different query parameters that are supported by Plausible Analytics:

  • yourdomain.com?ref=Newsletter
  • yourdomain.com?source=Newsletter
  • yourdomain.com?utm_source=Newsletter

For any clicks on any of the above links, "Newsletter" would be listed as a referral source in your Plausible Analytics dashboard.

You can also go a bit deeper and track your links in more detail:

  • yourdomain.com?utm_source=Newsletter&utm_medium=Email&utm_campaign=NovemberNewsletter&utm_content=Link

For any clicks on the above link, "Newsletter" would be listed as a referral source in your Plausible Analytics dashboard, "Email" would be listed as the medium, "NovemberNewsletter" would be listed as the campaign and "Link" would be listed as the content.

Merging organic traffic and paid campaigns

It's a good practice to tag your links where the referrer header isn't sent. Emails, newsletters, chat, messaging applications, social media, paid advertising campaigns and so on.

When a query parameter is present in the link it takes priority. When someone lands on your website without the special query parameter defined, we fall back to the referrer header.

We merge all the identical sources in the "All" tab of the "Top Sources" report. For instance, clicks that you get from Facebook which aren't tagged by UTMs are labeled with a referral source "Facebook" by Facebook itself.

If you tag some links that you share on Facebook such as your paid ads with the utm_source=Facebook, clicks on those will be merged alongside organic Facebook clicks in the "All" tab.

Then you can see combined number of clicks between organic and UTM-tagged clicks in the "All" tab, and you can segment by UTM tagged clicks only in the "Medium", "Source", "Campaign", "Term" and "Content" sections.

note

UTM and other tags are case-sensitive so utm_source=Twitter and utm_source=twitter will show separately in your analytics dashboard.

Read more about "how to use UTM parameters to track your campaigns and understand the dark traffic".

note

Does your site use page URLs like yoursite.com/blog/index.php?article=some_article&page=11? They will be reported as yoursite.com/blog/index.php in the Top Pages report of your Plausible dashboard as we strip custom parameters. You can manually enable these custom parameters to be tracked. See how here.