Skip to content

Instructions

Yuhui edited this page Apr 22, 2021 · 1 revision
  1. In the Token field, add the token from your Cloudflare Web Analytics snippet.

For example, if your snippet is this:

<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "42e216b9090ru59384ygu891dce9eecde"}'></script>

Then your token is 42e216b9090ru59384ygu891dce9eecde.

  1. (optional) If you have a Single Page Access (SPA) website, you can choose to disable measuring it. In the Enable for Single Page Applications (SPAs), choose False or a variable that evaluates to the boolean value false.

By default, Cloudflare Web Analytics enables measuring SPAs automatically by overriding the History API's pushState function and listening to the onpopstate. Hash-based router is not supported.

Clone this wiki locally