← Back to Articles

Track OpenClaw Visitors With Redis

Set up Redis-based visitor counters for total hits and unique IPs in your OpenClaw deployment.

2026-03-107 min read

Why Redis for Visitor Counting

Redis is fast, simple, and reliable for increment counters and unique visitor sets. It is perfect for lightweight product analytics.

Core Data Model

  • visit:total_hits as an incrementing key
  • visit:unique_ips as a set with hashed IP values
  • API endpoints for track-visit and visit-stats

Common Troubleshooting

If stats stay at zero, check REDIS_URL in your runtime environment and restart PM2 with --update-env.

If unique IPs look wrong, verify Nginx forwards real client IP headers.

Ready to Deploy OpenClaw?

Apply this guide and launch your OpenClaw environment with one click.

Deploy OpenClaw