Pages API - how to enable web analytics and set the deploy webhook

For Workers & Pages, what is the name of the domain?

*.pages.dev

What is the issue or error you’re encountering

Hello, I’m creating and deploying *pages.dev projects from my headless CMS (Sanity), and everything works nicely, except I cannot find a way to enable web analytics and create a deploy webhook. The docs are not very helpful because, in ProjectCreateParams, there is no mention of GitHub authorization, which is required for private repos, and there are parameters for that, so I’m wondering if web analytics and deploy hook params are non-existent or just not documented. Cheers

May I ask if you plan to use and connect your custom (sub)domain to this particular Pages Project? :thinking:

It should be as simple as few clicks in the Dashboard:

Or you’d prefer to use Cloudflare API?

Thank you, @fritex, for your time and effort.
I won’t use my custom domains. Instead, the *.pages.dev pages will be added as a CNAME to our client’s DNS and serve as a radio player subdomain for their websites.
The analytics would be a “nice-to-have” feature; I’m more interested in setting up the deploy webhook while setting up the project so I can return it to Sanity CMS.
I know how to do it using the Dashboard, I was trying to figure out how to do it using Pages API.

Cheers.

May I ask if you’re going to serve, or rather “pull” from some 3rd-party source, some MP3 or M3U8, or rather RTMP(S) as a streaming, or even URLs to that? :thinking:
Just asking to figure out if this is possible over page.dev, even through the proxied :orange: custom domain.

On pages.dev, I will have a SvelteKit website with an audio player. The website will be deployed from Sanity CMS and also get content and playlist IDs for the player.
Playlist IDs and accompanied songs will come from a playlist-serving SAAS app that stores the MP3 files on Cloudflare R2.
So far, everything works nicely, but I cannot give you the link since I’m developing this for a client.

Now that I answered two of your questions, do you maybe have an answer for me? Usually, people post here to get an answer and it seems that I’m attracting more questions :wink:

Cheers.