Edge comparison (Cloudflare)

Place Cloudflare edge data beside GA4 and GSC to estimate bot share and review cache and threat blocking.

Overview#

The Edge comparison page (/dashboard/mkit/traffic/edge-comparison) places Cloudflare edge data beside GA4 and GSC to help spot bots and cache behaviour.

The K5 cards#

Five comparison cards at the top:

  1. CF Pageviews
  2. GA4 Sessions
  3. GSC Impressions
  4. Cache Hit Rate
  5. Threats Blocked

Bot estimate#

Bot share is estimated from the gap between CF pageviews and sessions:

bot_estimate_pct = (CF_pageviews - GA4_sessions) / GA4_sessions * 100
Note: Country dimension: CF uses ISO codes and GA4 uses English full names, so a mapping is applied first; per country bot_est = cf_share - ga4_share.

Cloudflare token#

The Cloudflare connection is not OAuth — you paste an API Token (stored encrypted). The token needs these four permissions:

PermissionPurpose
Account.Settings:ReadRead account settings
Account.Account Analytics:ReadRead account-level analytics
Zone.Zone:ReadList domain zones
Zone.Analytics:ReadRead edge analytics

Verification flow:

  1. POST /user/tokens/verify to validate the token
  2. GET /zones?per_page=50 to list zones

Limits#

History and connection limits:

ItemLimit
CF history (product copy)Free/Pro 14 days, Business/Enterprise 30 days
CF history (real query)Fixed at 14 days; the zone plan is not queried
Non-CF DNS sitesCannot bind a zone
Cloudflare not connectedReturns CONNECTION_REQUIRED (service=cf)
Note: The page states "CF data requires DNS hosted on Cloudflare"; a failed token check returns CF_TOKEN_INVALID (400).
  • Bot traffic: /bots
  • Search dimension: /dimensions-search
  • Data latency & metric definitions: /data-latency