Cloudflare Web Traffic Analytics

What is Cloudflare Web Analytics?

Cloudflare Web Analytics provides a free analytics to your site without changing your Domain Name System(DNS).Advantage of using Cloudflare: with Cloudflare Web Analytic you can monitor website page views and website visits without changing your DNS which a great feature!

Setup Cloudflare Web Traffic Analytics

Follow the below steps to get started by setting up the Cloudflare Web Traffic Analytics for your website or blog.

Step 1: Open the following cloudflare url >> https://www.cloudflare.com/en-gb/


















Step 2: Log in to your account or Sign Up if you don't have one.



Step 3: After logging in cloudflare >> from right hand side menu, scroll down  and select Web Analytics



Step 4: Now, Click on "Add a Site" button
















Step 5: Add a Site >> Enter your website's hostname >> Click on Done














For Example:













Once you click on done. You will get a message like Site added successfully

















Step 6: For verifying your website we need to add the JS Snippet below before the ending body tag on any of your HTML pages

Now, copy the JS Snippet and go to your root directory and paste the JS Snippet below before the ending body tag on any of your HTML pages












Step 7: Leave for half a day to collect the website logs and metrics.