Tracking UTM parameters
Koko Analytics Pro can track UTM parameters so you can see which campaigns, sources, and channels send visitors to your site.
This is useful when you share links in newsletters, social media posts, ads, partner websites, or other campaigns. By adding UTM parameters to those links, you can later see how much traffic each campaign generated in your Koko Analytics dashboard.
What are UTM parameters?
UTM parameters are small pieces of information added to the end of a URL.
For example:
https://example.com/pricing/?utm_source=newsletter&utm_medium=email&utm_campaign=spring-saleCode language: JavaScript (javascript)
In this example:
utm_sourcetells you where the visitor came from, such asnewsletter,facebook, orpartner-site.utm_mediumtells you the type of channel, such asemail,social, orcpc.utm_campaigntells you the campaign name, such asspring-sale.
Koko Analytics Pro tracks these three parameters:
utm_sourceutm_mediumutm_campaign
Enable UTM tracking
UTM tracking is disabled by default.
To enable it:
- Go to Settings > Koko Analytics in your WordPress admin.
- Find the Enable UTM tracking? setting.
- Select Yes.
- Save your settings.
From that moment on, Koko Analytics Pro will start collecting UTM data from pageview requests.
Where UTM parameters are detected
Koko Analytics Pro can detect UTM parameters from the URL query string.
For example:
https://example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=may-updateCode language: JavaScript (javascript)
It can also detect UTM parameters from the URL hash.
For example:
https://example.com/#utm_source=newsletter&utm_medium=email&utm_campaign=may-updateCode language: JavaScript (javascript)
Viewing UTM reports
After UTM tracking is enabled and visitors start arriving through tagged links, the Koko Analytics dashboard will show additional report types in the referrers section.
You can switch between:
- Referrers
- Campaigns
- Mediums
- Sources
Each report shows the number of visitors and pageviews for the selected date range.
Example campaign links
Here are a few example links you could use.
Newsletter link:
https://example.com/product/?utm_source=newsletter&utm_medium=email&utm_campaign=product-launchCode language: JavaScript (javascript)
Social media link:
https://example.com/product/?utm_source=facebook&utm_medium=social&utm_campaign=product-launchCode language: JavaScript (javascript)
Partner link:
https://example.com/product/?utm_source=partner-name&utm_medium=referral&utm_campaign=product-launchCode language: JavaScript (javascript)
Using the same utm_campaign value across different sources and mediums makes it easier to compare how each channel performed for the same campaign.
Tips for naming UTM parameters
Try to use clear and consistent names.
For example, choose one format and stick to it:
utm_campaign=spring-sale
Instead of mixing multiple formats:
utm_campaign=spring-sale
utm_campaign=SpringSale
utm_campaign=spring_sale
Koko Analytics stores each unique value separately, so inconsistent names will appear as separate rows in your reports.
A few practical tips:
- Use lowercase names.
- Use hyphens instead of spaces.
- Keep campaign names short but descriptive.
- Use the same campaign name across all links for the same campaign.
- Use
utm_sourcefor the platform or sender. - Use
utm_mediumfor the channel type.
Does this affect visitor privacy?
UTM tracking in Koko Analytics Pro is designed to track campaign performance, not individual people.
Koko Analytics records aggregated counts for campaign values, sources, and mediums. It does not add third-party tracking services to your site, and your analytics data stays on your own server.
Why are my UTM parameters not showing?
If you do not see UTM data in your dashboard, check the following:
- Make sure Koko Analytics Pro is installed and activated.
- Make sure your Pro license is active.
- Make sure Enable UTM tracking? is set to Yes.
- Make sure your links include
utm_source,utm_medium, orutm_campaign. - Make sure visitors have clicked those tagged links after UTM tracking was enabled.
- Check that your selected dashboard date range includes the visits you are looking for.
UTM reports only show data collected after UTM tracking was enabled. Existing historical visits are not retroactively assigned to campaigns.
Does Koko Analytics track utm_content or utm_term?
No. Koko Analytics Pro currently tracks:
utm_sourceutm_mediumutm_campaign
The optional utm_content and utm_term parameters are ignored.