Load Zaraz manually
Last updated Apr 16, 2026 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:
<script src="/cdn-cgi/zaraz/i.js" referrerpolicy="origin"></script>
With the script, your page HTML should be similar to the following:
<html>
<head>
….
<script src="/cdn-cgi/zaraz/i.js" referrerpolicy="origin"></script>
</head>
<body>
…
</body>
</html>
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.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/zaraz/advanced/load-zaraz-manually/#page","headline":"Load Zaraz manually","description":"Control when Zaraz loads on your pages.","url":"https://developers.cloudflare.com/zaraz/advanced/load-zaraz-manually/","inLanguage":"en","image":"https://developers.cloudflare.com/zaraz/advanced/load-zaraz-manually/og.png?v=71ab351dd5a5ec27","dateModified":"2026-04-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Send Zaraz event logs to Logpush destinations. title: Send Zaraz logs to Logpush image: https://developers.cloudflare.com/zaraz/advanced/logpush/og.png?v=3c17370396fc75ae
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/zaraz/llms.txt
Use this file to discover all available pages before exploring further.
Docs