Web AnalyticsI would like to know the API to add a site to Web Analytics

What is the API to add sites to Web Analytics?

[Cloudflare API], etc. I would like to register them automatically with scripts, etc., rather than manually from the dashboard screen.

There is no official API for adding a site, but you can use dev tools to get the API call that the dashboard makes.

2 Likes

@Cyb3r-Jak3, this really would be a frankenstein solution haha.

Hi @daikoku.yasushi, why not simply use the Analytics API?

GraphQL Analytics API · Cloudflare Analytics docs - (GraphQL).

Thank you.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.