Cloudflare 中文文档
Zaraz
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

Load Zaraz manually

By default, if your domain is proxied by Cloudflare, Zaraz will automatically inject itself to HTML pages in your site. This makes it easier to get up and running quickly. However, you might want to load Zaraz manually, for example to test Zaraz on specific pages first.

After you turn off the Auto-inject script option, you will have to manually include the Zaraz script in your HTML, immediately before the </head> tag closes. The path to your script would be /cdn-cgi/zaraz/i.js. Your script tag should look like this:

With the script, your page HTML should be similar to the following:

Note that if your site is not proxied by Cloudflare, you should refer to the section about Using Zaraz on domains not proxied by Cloudflare.