Swetrix as an alternative to Cloudflare Web Analytics

Date

Cloudflare offers several analytics products and one of them is called Cloudflare Account Analytics, but it is only available to Cloudflare users. Cloudflare Web Analytics, on the other hand, is a free tool that is available to everyone.

Cloudflare Account Analytics is a server-side tracking utility that provides insights about website requests, bandwidth and so on, while Cloudflare Web Analytics employs client-side tracking, similar to Swetrix and Google Analytics. Server-side tracking doesn't require the use of scripts on your website, which can be affected by ad-blockers or core web vitals. However, client-side tracking has the advantage of being able to filter out automated traffic to your website, resulting in more accurate pageview counts.

Cloudflare Web Analytics Dashboard Cloudflare Web Analytics Dashboard
  1. Data collection & dashboard.
    1. Sampling is applied to Cloudflare Dashboard.
    2. Bots are not excluded.
    3. Data retention.
    4. User flow analysis.
  2. Number of websites is limited.
  3. Cloudflare dashboard is missing a lot of insights.
  4. Open source vs closed source.
  5. Different techniques of unique visitors tracking.
  6. Comparison table.
  7. Pricing.

Data collection & dashboard.

Sampling is applied to Cloudflare Dashboard.

Cloudflare's documentation states that the analytics they provide are based on a sample — a subset of the dataset.
That means that Cloudflare Web Analytics is not displaying the actual stats of your website, but they take a sample of data they collect (it's about 10% of your total traffic) and show you the data based on the patterns seen in the sample. 10% is a very small sample size and it cannot always provide you with the accurate data.

The main reason of why some analytics companies apply sampling techniques is to reduce the running costs, especially if the analytics service is 'free'.

At Swetrix, we prioritise both the accuracy of the data we provide and the privacy of your users. To achieve this, we never sample the data we collect and always show you the actual traffic coming to your website. We believe that you should have access to the most accurate data available while also preserving the privacy of those visiting your site.

Bots are not excluded.

Another reason why Cloudflare Web Analytics dashboard is inaccurate is that they are not excluding bot traffic. Bots are labelled as 'Unknown' and in some cases they take a decent percentage of total statistics.
At Swetrix, we detect bot traffic and exclude it from your website statistics, as this bot traffic does not represent actual pageviews. Bot traffic is also not accounted in our pricing.

Data retention.

As stated in their documentation, Cloudflare only stores the analytics data for 6 months (when they launched it was only 7 days). Long data retention is a crucial feature for people who use analytics, as it's very common for people to compare large data sets, i.e. month-to-month or year-to-year comparison.

Cloudflare Analytics is currently a free product, so it makes sense they want to reduce costs of operating it. It's not their core product, so we are not expecting for them to upper the limits of data retention.

At Swetrix, we currently store your data indefinetely. You can compare and check the data for any period you want.

User flow analysis

With Swetrix, you can you can track user interactions and navigation patterns throughout your application, providing valuable insights for optimising user experience and engagement. Analysing user flow might help you to improve your website and the user experience of your visitors.
Cloudflare Web Analytics currently does not provide such functionality. User flow diagram Swetrix user flow diagram

Number of websites is limited.

Cloudflare has a maximum of 10 websites you can add to the web analytics. Swetrix free tier also provides you with 10 websites - we do it as it currently costs us to store the website data. Swetrix paid tiers have a limit of 20 to 30 websites per account, but in feature these limits will be greatly increased.

Cloudflare dashboard is missing a lot of insights.

Cloudflare Dashboard is too limited and misses a lot of crucial features most people use in their daily life. For example, here's what Cloudflare is missing compared to what you can get on Swetrix:

  1. No visit duration metric. With Cloudflare you're not able to see for how long people stay on your website and measure the quality of traffic based on this information.
  2. No realtime dashboard view. You cannot see how many people are currently on your website and cannot check what browser or OS are the people currently on your website are using or what country do they come from.
  3. Cloudflare does not support UTM tags, so you cannot measure the effectiveness of your marketing or email campaigns.
  4. No custom event tracking. With Cloudflare you can't track some specific events like user signing up or purchasing something on your webiste.
  5. No bounce rate metric so you cannot analyse the quality of traffic coming from a specific source.
  6. No custom extensions functionality. With Swetrix you can create or install custom addons to extend the dashboard and even publish them our Marketplace. Cloudflare does not support such functionality.
  7. You're not able to blacklist specific IP addresses that will be excluded from traffic collection. This is a useful feature that helps to ignore analytics data coming from you or other website administrators.
  8. No teams support. With Swetrix you can invite other people to your project, or even set different roles to them. Cloudflare does not support this.
  9. No public dashboards, so you cannot share your analytics data with other people, for example your website visitors.

Open source vs closed source.

Swetrix is a fully opensourced web analytics utility. Our code is available on Github, anyone can always analyse it or create pull requests with new features, fixes or improvements. Swetrix can be self-hosted, we also provide Docker images for that.

On the other hand, Cloudflare Web Analytics is a fully closed source product. People who use Cloudflare have to blindly trust this company, as there's no way of knowing what's going on when they use it. You will never know if there are any data leaks on their side or if the code has some backdoors.

Different techniques of unique visitors tracking.

Swetrix and Cloudflare Web Analytics have different definitions of a unique visitor. Cloudflare Web Analytics counts a visit as a successful page view that has an HTTP referrer that doesn't match the hostname of the request. This means that Cloudflare counts the number of times someone comes to any page of your site from another site, and it may differ significantly from the counts of other analytics tools depending on the type of site and audience you have. For example, if the same person visits your site ten times in one day, Cloudflare Web Analytics would list that person as ten unique visitors, while Swetrix would show them as one unique visitor.

Swetrix does not use cookies or local storage to track unique visitors, and it does not generate a device-persistent identifier because these are considered personal data under GDPR. Instead, it generates a daily changing identifier using the visitor's IP address and User Agent, and it anonymises this data by running it through a hash function with a dailt rotating salt.

Comparison table.

Swetrix Cloudflare Analytics
Price Free up to 5,000 pageviews, then $15 per month Free, with data retention limits. Then $20 / month per site
Data accuracy 100% accurate Inaccurate, as data sampling is applied
Open source Yes No
Privacy-focused Yes Yes
Custom addons Yes No
Cookieless Yes Yes
Custom events Yes No
Public dashboards Yes No
Sharable dashboards Yes No
UTM tags support Yes No
Realtime dashboard Yes No
Visit duration metric Yes No
Bounce rate metric Yes No
Data segmentation Yes No
Script size < 5 KB < 5 KB
Browser addons Yes No

Pricing.

Like Google Analytics, Cloudflare Web Analytics is free to use. It's natural to be suspicious of free services, as the saying goes, "If you're not paying for the product, you are the product.". This means that the company providing the free service is likely monetizing your data in some way. While it's unclear how Cloudflare is funding its free web analytics service, it's worth considering that the company may be using it as a form of marketing, a strategy in which a free service is offered to attract users to the company's main products.

As a large company with significant resources, Cloudflare may be using its web analytics service as a way to increase awareness of its other offerings. It's worth considering whether Cloudflare will continue to offer this service if it is not successful in attracting users to its other products.

Cloudflare is a company that is not primarily focused on web analytics, and this is evident in the design of its analytics dashboard. One issue with the dashboard is the lack of easy access to the stats and an oversimplified dashboard with a lot of missing features. This inconvenience suggests that Cloudflare is not as specialized in web analytics as other companies in the industry.

Swetrix, on the other hand, is build by a small, bootstrapped and dedicated team that fully focuses on analytics. We are a transparent company with a simple and fair pricing policies. It costs time and money to develop and maintain a SaaS, so we chare a fee for our subscription plans. We also offer a free tier for small websites, as we understand the need of privacy-focused analytics by a website of any size.

By using Swetrix you will support a small and fully independent web analytics business, so why not to give us a try.

Thank you for reading this, I hope 2022 was a great year for you! We wish you an amazing new year, we hope it brings you joy, success, and all that you hope for. May it be a year filled with positive experiences and growth :)
See you in the next blog post.