I need to recreate Cloudflare-like visitor analytics (unique monthly visitors and countries at least) using only data provided by GCP DNS. I couldn't find any writeups on how to do this without using the google analytics script.
Are there any pointers on how to do this without migrating the domain to cloudflare?
Posting Mr. @JohnHanley comment as answer to help other users understand this query. “Do not try to use DNS for that task. Clients cache DNS responses which would bias your measurements.”
In addition, you can enable cloud logging upon creation of your Cloud dns or Enable existing Cloud DNS’s logs. You can also check Cloud DNS Logging on what DNS logging tracks.