惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
博客园_首页
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium
量子位
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
InfoQ
J
Java Code Geeks
T
Tailwind CSS Blog
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
腾讯CDC

Blog of Simple Analytics

The EU wants to kill cookie banners Google is tracking you (even when you use DuckDuckGo) German court rules Meta’s tracking tech violates GDPR Closing the data gap - Simple Analytics x Usercentrics The EU-US data deal may be dead in the water You are missing 20% of your website data with GA4 How a reverse trial will push Simple Analytics to the next level Google will start tracking all your devices (WTF?) Big Tech Fails EU’s Digital Services Act: Only Wikipedia Passes the Test Meta fined $102 million by the Irish Data Protection Commission Europeans spend 575 Million hours per year clicking cookie banners The most interesting GDPR fines GDPR and fines: all there is to know Google loses key antitrust case Web Analytics for Crypto Companies Web analytics for publishers Google pulls Uno Reverse card: Rolls back decision to kill third-party cookies Privacy Monthly July 2024 Privacy Perspectives June 2024 Privacy Monthly June APRA fumbles targeted advertising Privacy Monthly May Meta loses key privacy battle Google delays cookie phase-out once again Privacy Monthly April 2024 Web Analytics and Consent Cookies 101 Privacy Monthly March 2024 German authority cracks down on cookie banners Google Tag Manager vs Google Analytics
Host analytics on Cloudflare Zaraz
Ankit Ghosh · 2023-11-27 · via Blog of Simple Analytics

Cloudflare is one of the biggest internet operators. According to W3Techs, Cloudflare is used by 78.0% of all the websites whose reverse proxy service we know.

Apart from being an internet giant, Cloudflare also has several inbuilt tools for networking, website speed and SEO. One of them is Cloudflare Zaraz, a tool that is built to load other 3rd party tools like web analytics.

Think of it as Cloudflare’s version of Google Tag Manager. Now let’s dive deep in to learn the benefits and how you can use it to load analytics tools like Simple Analytics.

  1. Benefits of Cloudflare Zaraz
  2. How to host analytics or any other script on Cloudflare Zaraz
    1. Setup Zaraz
    2. Configure Zaraz
    3. Setup Simple Analytics on Zaraz Custom HTML
    4. Test Zaraz
  3. Zaraz & GDPR
  4. Conclusion

The UK Government chose Simple AnalyticsJoin them

Benefits of Cloudflare Zaraz

Cloudflare Zaraz is a very recent addition to Cloudflare’s portfolio and comes with several benefits that you, as a marketer or developer, can use in your day-to-day life. Let’s go through them one by one.

  1. Easier management: One of the key benefits of Zaraz is management of 3rd party scripts with ease. Zaraz is the go-to place to manage and control all your scripts like analytics, live chat and all other in one single dashboard. This removes the need to edit website code every time you need to remove or add a 3rd party service.
  2. Faster load times: Cloudflare also promises that Zaraz uses Cloudflare’s network to speed up the load time of 3rd party scripts; however, we have not yet tested this.
  3. Bypass ad-blockers: Another important benefit of Zaraz is its ability to bypass ad-blockers by loading the script via your domain itself. Though if you are a Simple Analytics user, you can do so with our custom domain feature.
  4. Better controls: Zaraz is also a great way to control all your 3rd party scripts. In one single dashboard, you can configure scripts to only load on specific pages or only when specific events are triggered. This is super useful for marketers and business owners who manage multiple scripts on their website.

How to host analytics or any other script on Cloudflare Zaraz

There are several ways on how you can use Cloudflare Zaraz but lets keep it simple for now.

Before we begin, there are a few prerequisites:

  1. Have a Cloudflare account (a free one works too)
  2. The website is added on Cloudflare

Setup Zaraz

Once your website is added to Cloudflare, navigate to the left menubar and click on Zaraz.

Zaraz Menubar

Once that has been done, you’ll be sent to Zaraz’s tool configuration page.

On that page, you’ll be given a short intro about Zaraz along with a list of tools and services that you can start adding. Simply select a tool or proceed with “Custom HTML” in case of Simple Analytics or any other unlisted tool.

Zaraz Configuration

Configure Zaraz

To configure, click the desired tool/option, “Custom HTML” in this case. Once you click on it, you be asked to confirm and grant permission to enable JavaScript, which is essential for Zaraz to work.

Lastly, you can also name the component, the default would be “Custom HTML” which can be edited to something like “Simple Analytics Script”. Once done, click save.

Zaraz Setup

Setup Simple Analytics on Zaraz Custom HTML

Once you complete the above step, you be redirected to a page to configure Simple Analytics or any other tool that you wish. To do so, simply click on “Create action”.

In our case, we wish to load Simple Analytics on all pageviews, so here’s how the setup would look.

Zaraz Action

After configuring action name and triggers, you’ll need to paste the “Custom HTML” which is essentially the script that you add on your website. In the case of Simple Analytics, the same can be found on your website’s setting section.

GrowthShot%202023-11-21%20at%2014.34.55%402x.png

Simply copy the script from your Simple Analytics dashboard and paste on Zaraz. Once done, click on “Save”.

Zaraz Sciripts UI

Test Zaraz

Testing whether a tool is working or not in Zaraz is also pretty easy. Simply go back to your Zaraz homepage, and you see a graph beside tools that are working.

Zaraz Logs UI

If you are from the EU or serve any customer there, then GDPR is something you should absolutely keep in mind when choosing any tool that collects PII (Personal Identifiable Information).

According to Cloudflare, Zaraz is GDPR compliant; however, one needs to keep in mind that the laws have been continuously changing and the use of cookies might be a problem in the future. You should also keep it in mind that using Zaraz doesn’t make tools like Google Analytics GDPR complaint, as the data is still sent to Google’s servers.

So keep all this information in your mind before implementing Zaraz on your website.

Conclusion

Zaraz is a great Google Tag Manager alternative that also comes with several other benefits, however do keep this in mind that you won’t be able to use it without adding your website to Cloudflare.

If you are just looking for an analytics solution that doesn’t get blocked by ad-blockers, then simply sign up for Simple Analytics and set up a custom domain. Simple to use and fully compliant with all privacy laws such as GDPR and COPPA. See for yourself what that looks like.