Skip to content

UTM Tracking#222

Merged
stordahl merged 4 commits intomainfrom
stordahl/utm
Sep 19, 2025
Merged

UTM Tracking#222
stordahl merged 4 commits intomainfrom
stordahl/utm

Conversation

@stordahl
Copy link
Copy Markdown
Collaborator

@stordahl stordahl commented Sep 14, 2025

Overview

Closes #138 by adding utm support to the server (/collect endpoint), tracker and dashboard. Implementation is based on this doc from Plausible

Changes

@counterscale/tracker

  • Adds UTM parameter extraction from URLs

@counterscale/server

  • Adds support for UTM parameters in the /collect endpoint
  • Adds UTM to schema (blob 11-15)
  • Adds getCountBy* queries for all UTM parameters
  • Adds loaders and components for querying and displaying UTM data (resources.utm-*.tsx)
  • Integrates UTM cards into the dashboard

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 14, 2025

Codecov Report

❌ Patch coverage is 99.73190% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.19%. Comparing base (36401d5) to head (3cd9387).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...kages/server/app/routes/resources.utm-campaign.tsx 97.43% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #222      +/-   ##
==========================================
+ Coverage   78.36%   80.19%   +1.83%     
==========================================
  Files          51       56       +5     
  Lines        3943     4313     +370     
  Branches      524      562      +38     
==========================================
+ Hits         3090     3459     +369     
- Misses        844      845       +1     
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stordahl stordahl marked this pull request as ready for review September 14, 2025 23:33
@stordahl stordahl merged commit 84634b6 into main Sep 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

utm tracking

1 participant