Analytics Tracking Test

Test Tracking

Click to test the analytics tracking function. In the test environment, it will show "No CF-IPCountry header" because Cloudflare headers are only present in production.

Recent Analytics Records

No analytics records yet. Visit a /s/{creator_slug} route in production.

How It Works

  • • In production, Cloudflare automatically adds CF-IPCountry and CF-IPCity headers
  • • The function extracts the creator slug from /s/{creator_slug} URLs
  • • Bot traffic is automatically filtered out
  • • Records are saved to the Analytics entity for dashboard display