Querying page analytics
I have a static page up with cloudflare and web analytics enabled to be collected on this page... How can I query for this data so that I can show it on a "dashboard" of sorts? In specific, I want to get how many users visit the page and display it on one of the pages. Can I do this? Is there documentation for an API of some sort?
1 Reply
You would use the GraphQL API. https://developers.cloudflare.com/analytics/graphql-api/
Cloudflare Docs
GraphQL Analytics API · Cloudflare Analytics docs
The GraphQL Analytics API provides data regarding HTTP requests passing through Cloudflare’s network, as well as data from specific products, such as …