Skip to content

Commit 7510bbe

Browse files
Update troubleshooting.md
1 parent ad8a285 commit 7510bbe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/connections/sources/catalog/libraries/website/javascript/troubleshooting.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ var writeKey;
3030
ENV === 'production' ? writeKey = 'A' : writeKey = 'B';
3131
```
3232

33+
## How to Resolve 'Failed to Load Analytics.js ChunkLoadError'
34+
35+
This error can occur for a few reasons:
36+
37+
1. Snippet Syntax: Ensure the Segment snippet is correctly added to the page. Check for any missing or extra characters. Please follow our guide [here](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/#step-2-install-segment-to-your-site).
38+
39+
2. NPM Package: If using Segment via NPM, refer to this [guide](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/#step-2b-install-segment-as-a-npm-package).
40+
41+
3. Browser Cache: Try clearing the browser cache, as this is a common cause for ChunkLoadError.
42+
43+
4. Cloudflare Caching: If you're using Cloudflare, disable caching for the Segment JS file.
44+
3345
## Do you see events appear in your debugger?
3446

3547
When you reload the page, does your debugger show a new [`page`](/docs/connections/spec/page)? You can also check the JavaScript console in the browser and manually fire an event, like an Identify call, which would show up in the debugger.

0 commit comments

Comments
 (0)