Documentation
Quick start
Create an account
Sign in at app.logly.uk with Google or GitHub. No credit card required.
Add your site
Go to Settings β Add a site. Enter a name and domain (e.g. myblog.com). You'll get a site ID.
Add the snippet
Paste this inside <head> on every page you want to track, replacing YOUR-SITE-ID with the ID from the previous step:
That's it. Stats appear in your dashboard within a minute.
Using a strict Content-Security-Policy? Allow Logly's domain in two directives, or events are blocked silently and your dashboard stays empty:
Pageviews are sent as an image beacon to logly.uk/_e, so img-src is the one that matters (connect-src is not used). A strict style-src 'self' only produces a few harmless console warnings β tracking still works.
On WordPress? You can skip the snippet β install the Logly WordPress plugin instead and just enter your site ID. It is not in the WordPress.org directory yet, so download it from its GitHub repository.
The script is under 1 KB, non-render-blocking, and has no impact on your Lighthouse or Core Web Vitals scores.
How it works
Session tracking
Logly identifies sessions using a daily-rotating hash of a truncated IP prefix and browser user-agent. The hash changes every day, so the same visitor on consecutive days counts as two sessions. No cookie is set and no personal data is stored.
Active time on page
The tracker uses the Page Visibility API: the timer pauses when your tab is hidden (minimised, switched away, or in a background tab) and resumes when it's visible again. The time you see in the dashboard is the time the visitor was actively looking at your page.
Ad blocker bypass
Requests are routed through logly.uk/e, a first-party endpoint that is not on any block list. This allows Logly to measure the portion of your audience using Brave Shields, uBlock Origin, or similar tools.
Dashboard
| Metric | Definition |
|---|---|
| Visitors | Unique session hashes in the selected period |
| Pageviews | Total page loads tracked |
| Avg. time on page | Mean active time across all sessions |
| Bounce rate | Sessions with a single pageview |
Use the date picker (7 / 30 / 90 days) to change the time range. Switch between sites using the site selector in the header.
Data export (CSV)
You can download your analytics data as a CSV file at any time. Set the date range in the dashboard, then click Export β in the top-right header and choose one of three types:
| Type | Rows | Columns |
|---|---|---|
| Daily stats | One per day | date, pageviews, sessions, visitors, avg_duration_s, bounce_rate |
| Sessions | One per visit (max 100 k) | started_at, ended_at, duration_s, pages_visited, entry_page, exit_page, referrer, country, device, browser, os |
| Events | One per custom event (max 100 k) | ts, name, country, device |
No personal identifiers or IP addresses. Country is ISO 3166-1 alpha-2 (ES, USβ¦). Timestamps are ISO 8601 UTC. The exported date range matches the picker selection.
The same data is available programmatically via the REST API.
Custom events
Pageviews tell you who showed up. Events tell you what they did. Once p.js is on your site, the tracker exposes one function:
That's the whole API β no SDK, no init step. The event name is capped at 100 characters and should be lowercase snake_case. Events appear in your dashboard's Events panel within seconds and can be used as steps in funnels.
Example 1 β CTA click
Example 2 β Signup completed (after success)
Fire on success, not on attempt β otherwise you inflate the count with people who never finished.
Example 3 β Plan selection (one event per plan)
One event per plan, not a single plan_selected with the plan in a payload β Logly stores event names verbatim and you'll want each plan ranked separately in the dashboard.
For advanced trigger patterns β scroll-into-view, scroll depth, dwell time β see the events cookbook on the blog.
AI assistants (MCP)
Connect Logly to Claude, Cursor and other AI assistants with the Logly MCP server β ask about your traffic, funnels and real-time visitors in plain language.
Plans and limits
| Plan | Pageviews / month | Sites | Data retention |
|---|---|---|---|
| Free | 10,000 | 1 | 1 month |
| Starter | 100,000 | 5 | 6 months |
| Pro | 1,000,000 | Unlimited | 2 years |
| Business | 10,000,000 | Unlimited | 5 years |
Pageviews from all your sites count towards the same monthly bucket.
Analytics by Logly badge
The Free plan shows an "Analytics by Logly.uk" badge automatically on tracked pages. Starter and higher plans can hide it from the Settings page.
Invite codes
If you have an invitation code (EARLY-XXXXX or STARTER-XXXXX), redeem it in Settings to unlock the corresponding plan at early access pricing.
Support
Use the chat widget in the bottom-right corner of this page β it's the fastest way to get help.