What to Do If Your Traffic Drops after Migrating to Cloudflare

11 November 2020

If you’ve moved to Cloudflare and noticed a sudden drop in daily active visitors this is how to solve the problem.

Check for common Cloudflare issues

Before we jump into a technical fix, let’s eliminate the most common Cloudflare issues first. Check that your DNS records, page rules and SSL configurations are correct. Pay attention to:

  1. Non-WWW to WWW redirections
  2. Page rules which cause infinite loops
  3. DNS rules are incorrect, or Cloudflare is not enabled
  4. Selecting the wrong flexible, strict or full SSL setting

Why have my daily unique visitors dropped after switching to Cloudflare?

Before you switched to Cloudflare, visitors connected directly to your server.

After switching to Cloudflare, visitors connect to Cloudflare, which then retrieves information from your server as required. This allows Cloudflare to act as a reverse proxy, caching frequently requested files and protecting your server.

As visitors don’t connect to your server directly anymore, you no longer have access to the visitors IP address.

This causes issues for some analytics tools, which track daily active visitors by their IP address.

Helpfully Cloudflare does provide the original visitors IP address in an HTTP header called CF-Connecting-IP

Get the original IP addresses for your visitors into your analytics tool by choosing one of the options below.