Back to Support Grow Your Audience Stats & Analytics Cloudflare Web Analytics

Cloudflare Web Analytics

In addition to the built-in WordPress.com stats, Cloudflare Analytics offers ways to view and filter details about the traffic coming to websites. This guide will show you how to enable Cloudflare Analytics on your site.

This feature is available on sites with our WordPress.com Explorer, Creator, and Entrepreneur plans, and the legacy Pro plan. For sites on the free and Starter plans, upgrade your plan to access this feature.

About Cloudflare

Cloudflare provides services to optimize a WordPress website that WordPress.com site owners can take advantage of.

Keep in mind that many features offered by Cloudflare are already built into WordPress.com plans, including speed optimization, caching, CDN, security, SSL, and web analytics.

The web analytics feature described in this guide is a free service from Cloudflare. Cloudflare offers additional services and upgrade options that require your website to have a plugin-enabled plan.

Step 1: Sign Up to Cloudflare

To add Cloudflare Web Analytics to your WordPress.com site, take the following steps:

  1. Visit your website’s dashboard on WordPress.com.
  2. Navigate to Tools Marketing.
  3. Click on the Traffic tab.
  4. Scroll down to the “Cloudflare Web Analytics” section and click the “Add Cloudflare” toggle.
  5. Click the “Learn more” link or visit the Cloudflare sign-up page here.
  6. Click the “Get Started” button on the Cloudflare website, and you will be prompted to create your account.
  7. In your new account’s dashboard, Cloudflare will ask for your site address. Enter your WordPress.com website’s domain name here (free site addresses ending in .wordpress.com and wpcomstaging.com are not accepted.)
Enter your site domain name (example.com) on the Cloudflare setup page.

Continue through the steps on Cloudflare where you will be prompted to choose a plan and configure your DNS to complete the setup process.

Step 2: Enable Cloudflare Analytics

After completing the steps in the previous section, proceed with enabling Cloudflare Web Analytics with the following steps:

  1. In your Cloudflare dashboard, navigate to “Analytics & Logs” and then “Web Analytics“:
The cloudfare dashboard, with Web Analytics highlighted under the Analytics & Logs section.
  1. Select your hostname, which is the website you provided to Cloudflare.
  2. Cloudflare will provide you with a snippet of JavaScript code. Copy the code to your device’s clipboard.
  3. Back on your WordPress.com site, navigate to Tools Marketing and click on the Traffic tab.
  4. In the “Cloudflare Web Analytics” section, click the “Add Cloudflare” toggle.
  5. In the “Site Tag text box that appears, paste your code.
  6. Click the “Save settings” button.
The site tag box in the traffic settings.

Cloudflare Web Analytics will start recording information about your site.

Help & Support for Cloudflare

If you run into any difficulty with connecting Cloudflare to your site, please contact WordPress.com support.

For questions about Cloudflare’s services, you can visit the Cloudflare support site.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!