Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/content/docs/web-analytics/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ They are most likely coming from an automated testing tool making erroneous requ

We do not support custom integrations directly with the endpoint: all requests should originate from our beacon JavaScript.

### Why am I seeing syntax errors from the beacon script in Internet Explorer?

Internet Explorer 11 was the final version of Internet Explorer and it was [declared completely end-of-life (EOL) in 2022](https://techcommunity.microsoft.com/blog/windows-itpro-blog/internet-explorer-11-desktop-app-retirement-faq/2366549).

Our beacon script targets modern syntax which Internet Explorer does not support. This will cause a non-user-visible error when the script attempts to execute. The only functional impact is that beacons are not collected from these old browsers.

For customers using automatic-injection, Cloudflare adds `type="module"` to the `<script>` tag to prevent loading in Internet Explorer and similarly old, deprecated browsers.

For customers using the manual embed approach, you will need to add `type="module"` to the `<script>` tag manually. Our dashboard has been updated to include this attribute in the installation instructions.

---

## Setup
Expand All @@ -80,7 +90,7 @@ Yes. Instead of embedding the script using a tag manager as shown here:

```html
<script
defer
type="module"
src="https://static.cloudflareinsights.com/beacon.min.js"
data-cf-beacon='{"token": "$SITE_TOKEN"}'
></script>
Expand All @@ -90,7 +100,7 @@ Add the following script:

```html
<script
defer
type="module"
src="https://static.cloudflareinsights.com/beacon.min.js?token=$SITE_TOKEN"
></script>
```
Expand Down
3 changes: 3 additions & 0 deletions src/content/release-notes/beacon-min-js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ link: "/web-analytics/changelog/"
productName: beacon.min.js
productLink: "/web-analytics/"
entries:
- publish_date: "2026-07-13"
description: The beacon script is now injected with `type="module"` to intentionally exclude long EOL'd (End-of-Life'd) browsers like Internet Explorer from loading the script, given they don't support it anyway. [See FAQ entry for more information](/web-analytics/faq/#why-am-i-seeing-syntax-errors-from-the-beacon-script-in-internet-explorer).

- publish_date: "2026-06-16"
description: Updated Google's web-vitals library to version 5.3.0 and updated the JavaScript build output target to ES2015.

Expand Down