Custome Domain Analytics in Workers

How can I display basic analytics such as page visits and view for each custom domain using workers? Example:

bccom and ccom are custom domains of acom. I would like to display only bcom’s individual statistics when a visitor goes to bcom and likewise for ccom. For acom i would like to disply aggregate data.

Any snippets or tutorial links welcome.
Thannk you

A post was merged into an existing topic: Workers Analytics For Custom Domains