Commit d6d806e
Improve Google Analytics error handling for better UX
- Add onerror handler to Google Tag Manager script loading
- Provides informative console message when GA is blocked by ad blockers
- Reduces confusion about "script loading failed" errors in developer console
- Maintains full analytics functionality when scripts load successfully
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent c9ea9c6 commit d6d806e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments