How to use UTM parameters for tracking
Learn how to accurately attribute traffic sources using standard UTM tags and ViaMetric's smart parameter detection.
ViaMetric automatically captures standard UTM parameters from your URLs to help you understand exactly where your traffic is coming from.
Supported Parameters
We support all standard Google Analytics-style UTM tags, plus a few convenient shortcuts.
| Parameter | Meaning | Example |
|---|---|---|
utm_source | The specific site or platform sending traffic. | google, newsletter, twitter.com |
utm_medium | The marketing medium or channel. | cpc, email, social |
utm_campaign | The specific campaign name. | spring_sale, launch_v2 |
utm_term | Keywords for paid search. | running+shoes |
utm_content | Differentiating ads or links. | logo_link, cta_button |
Special Shortcuts
ViaMetric also listens for these shorthand parameters, which are often used by creators and indie hackers:
?ref=...(Mapped to Source)?via=...(Mapped to Source, and sets Medium tosocial)?source=...(Mapped to Source)
Auto-Tagging
We automatically detect and categorize traffic from major ad networks if specific CLICK IDs are present:
gclid→ Google Adsfbclid→ Facebook Adsttclid→ TikTok Adsli_fat_id→ LinkedIn Ads
How to Build a Tracking URL
To track a campaign, simply append the parameters to the end of your link using a ?.
Example:
https://yoursite.com/?utm_source=twitter&utm_medium=social&utm_campaign=launch_post
Using a Shortcut:
https://yoursite.com/?ref=producthunt
Best Practices
- Be Consistent: Stick to lowercase (e.g.,
emailinstead ofEmail) to prevent split data. - Don't Tag Internal Links: Never use UTMs for links between pages on your own website. This restarts the session and confuses the data.
- Use
utm_contentfor A/B Testing: tracking different versions of a newsletter link or ad copy.
FAQ
Q: Do I need to configure anything in ViaMetric? No. As long as the script is installed, we automatically parse these parameters and populate your "Sources" and "Campaigns" reports.
Q: What happens if I use both ref and utm_source?
This is rare, but if both are present, utm_source takes priority as the standard implementation.
