Analytics
See an application's visitors, page views, top pages and devices, counted from its requests with no script and no cookies.
The project's Analytics page shows how many people visit an application, how many pages they open, which pages those are and whether they come on a phone, a tablet or a desktop. Pick an application and a range of 7, 30 or 90 days. There's nothing to add to your site, because Dekka counts from the requests your application already serves, and figures appear a few minutes after it serves its first page.
What is counted?
A page view is a successful GET for something a person reads. The files a page loads, such as scripts, styles, images and fonts, aren't page views, and neither are failed requests, form posts or the page shown during lockdown mode.
A visitor is counted once a day, so the same person on Monday and Tuesday counts as two daily visitors, and the total for a range adds up each day's visitors. Crawlers, uptime checks and scripts are counted apart under Crawlers left out and stay out of the other figures.
Paths are grouped as pages, so /orders/1042 and /orders/1043 count as /orders/:id. Numbers, long tokens, email addresses and phone numbers in a path are replaced in the same way. Each day keeps up to 300 different pages for an application, and the rest are counted as (other pages).
What is kept?
The totals are kept for 400 days. Nothing that identifies a visitor is kept with them: addresses are scrambled before Dekka counts anything, query strings are never recorded, and the scrambled form a visitor is counted with changes every day and is deleted once the day is over.
Counting from requests can't see a page change inside a single-page application that never asks the server for the new page, so such an application shows the pages people arrive on.
Read analytics from the API
curl "https://api.dekka.cloud/v1/resources/$APP_ID/analytics?days=30" \
-H "Authorization: Bearer $DEKKA_API_KEY"The response holds the range's start and end, its views, visitors and bot_views, each counted day in days, the top_pages and the visitors by devices.