How to add Cloudflare Web Analytics script tag to vitepress html? #4127
-
In a word, if the string contains head: [["script", {
defer: "",
src: "https://static.cloudflareinsights.com/beacon.min.js",
"data-cf-beacon": '{"token": "2595614415824c6c86cb58b36566cd3d"}'
}]], but the output is: <script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon="{"token": "2595614415824c6c86cb58b36566cd3d"}"></script> but it should be: <script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "2595614415824c6c86cb58b36566cd3d"}'></script> |
Beta Was this translation helpful? Give feedback.
Answered by
brc-dd
Aug 11, 2024
Replies: 1 comment
-
Both are same. Even if you add the second one on a website and edit it as HTML, it will be shown as the first one. Example on cloudflare's own website: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiangnanscu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both are same. Even if you add the second one on a website and edit it as HTML, it will be shown as the first one.
Example on cloudflare's own website: