typebot.io/packages/embeds
Baptiste Arnaud d3c15f32c8
🐛 Handle GA script load failure to prevent bot from hanging (#2446)
## Summary
- Add `script.onerror` handler in `initGoogleAnalytics` so the promise
resolves even when the GA script fails to load (ad blockers, network
errors), preventing the bot from hanging indefinitely.
- Bump `@typebot.io/js` and `@typebot.io/react` versions to `0.10.2`.

## Test plan
- [ ] Enable a Google Analytics integration block in a bot
- [ ] Block `googletagmanager.com` (e.g. via ad blocker) and verify the
bot still loads
- [ ] Check that `"Failed to load Google Analytics script"` appears in
the console

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 12:18:57 +02:00
..
js 🐛 Handle GA script load failure to prevent bot from hanging (#2446) 2026-04-13 12:18:57 +02:00
react 🐛 Handle GA script load failure to prevent bot from hanging (#2446) 2026-04-13 12:18:57 +02:00
stories 🔧 Remove "baseUrl": "." from tsconfigs 2026-03-25 16:40:12 +01:00
wordpress 🐛 Update WordPress embed default lib version from 0.3 to 0.x (#2438) 2026-04-08 10:24:39 +02:00