[bug] Duplicate analytics HEAD requests even if analytics is disabled in config
Link to minimal reproducible example
See "Steps to Reproduce"
Steps to Reproduce
- Upgrade to
@reown/appkitand@reown/appkit-adapter-wagmiversion 1.8.7 or higher - Configure AppKit with:
createAppKit({ // ... other config enableCoinbase: false, features: { analytics: false, // ... other features }, }); - Open browser DevTools Network tab
- Load the application
- Observe 2-3 duplicate HEAD requests being sent despite
analytics: false - Observe Coinbase analytics requests being sent despite
enableCoinbase: false
Analytics and enableCoinbase options not working in 1.8.7+ - duplicate HEAD requests sent
Description
In version 1.7.20, setting analytics: false successfully prevented Reown AppKit from sending analytics HEAD requests. However, after upgrading to version 1.8.7+, the library now sends 2-3 duplicate HEAD requests even when analytics: false is explicitly set. This is particularly problematic for Next.js applications, which interpret these HEAD requests as prefetch requests.
Similarly, enableCoinbase: false appears to have no effect in version 1.8.7+, with Coinbase still making analytics requests despite the option being disabled.
Expected Behavior
- When
features.analyticsis set tofalse, no analytics HEAD requests should be sent - When
enableCoinbaseis set tofalse, no Coinbase Wallet SDK requests should be made
Actual Behavior
- Even with
analytics: false, 2-3 duplicate HEAD requests are being sent - Next.js intercepts these HEAD requests and treats them as prefetch, causing unnecessary network traffic
-
enableCoinbase: falsedoes not prevent Coinbase Wallet SDK requests (e.g.,https://cca-lite.coinbase.com/metrics)
Environment
- @reown/appkit version: 1.8.7+ (regression introduced compared to 1.7.20)
- @reown/appkit-adapter-wagmi version: 1.8.7+
- Framework: Next.js 16.0.0
- React version: 19.2.0
- Browser: Any (tested on Chrome, Firefox, Safari)
Workaround
Currently downgrading to version 1.7.20 is the only known workaround, but this prevents users from benefiting from newer features and bug fixes.
Additional Context
- This issue was not present in version 1.7.20
- The regression appears to have been introduced in some 1.8.* version
Summary
In version 1.7.20, setting analytics: false successfully prevented Reown AppKit from sending analytics HEAD requests. However, after upgrading to version 1.8.7+, the library now sends 2-3 duplicate HEAD requests even when analytics: false is explicitly set. This is particularly problematic for Next.js applications, which interpret these HEAD requests as prefetch requests.
Similarly, enableCoinbase: false appears to have no effect in version 1.8.7+, with Coinbase still making analytics requests despite the option being disabled.
List of related npm package versions
@reown/appkit @reown/appkit-adapter-wagmi
Node.js Version
v22.17.0
Package Manager
Related
https://github.com/reown-com/appkit/issues/5318