Aside from the insights tab in app platform are there any static site analytics available?
I am interested in metrics like unique IP’s, requests per ip, returning visitors, ip geolocation and the like.
If possible I would like to avoid a front end javascript solution
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Heya, @1001105920ontarioltd
If you want server-side style analytics for an App Platform static site (without adding a JS snippet), your options are limited because App Platform’s static hosting doesn’t currently expose raw access logs/visitor-level data like “unique IPs, requests per IP, returning visitors, geolocation,” etc. The built-in Insights is basically the only “native” view.
If you need those metrics without frontend JS, the usual approach is to put the site behind something that does provide edge logs/analytics, for example:
You can host the static assets in Spaces and enable the CDN, then use CDN / edge analytics (or log export, depending on your CDN layer) to get request-level visibility. Alternatively, you can front the site with a dedicated reverse proxy (Nginx/Caddy) where you control access logs, but that means running a Droplet just for logging/analytics.
If you truly want “returning visitors” without JS, note that it’s inherently hard to do reliably from IP alone (NAT, mobile carriers, IPv6 privacy addresses), so most “returning visitor” definitions still rely on a cookie (which is basically JS or at least a dynamic response that can set one).
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.