Troubleshooting
The latest CSQ SDK is here! Learn how to upgrade your app.
Requests are failing
Section titled Requests are failingIn order for Contentsquare to work, you need to make sure the following endpoints are not blocked by your network (VPN):
| Request | Endpoint | Detail |
|---|---|---|
| Config file | https://mobile-production.content-square.net | See Configuration |
| Analytics data (EU) | https://m.csqtrk.nethttps://m.ba.contentsquare.nethttps://m.aa.contentsquare.net | See Sending data |
| Analytics data (US) | https://m-aus1.contentsquare.nethttps://m.bf.contentsquare.nethttps://m.af.contentsquare.net | See Sending data |
| Monitoring | https://l.contentsquare.net | Used by the SDK to send SDK monitoring analysis in JSON format over HTTPS. |
| Session Replay data (EU) | https://ka-aeu1.contentsquare.nethttps://ka.ba.contentsquare.nethttps://ka.aa.contentsquare.net | See Session Replay requests |
| Session Replay data (US) | https://ka-aus1.contentsquare.nethttps://ka.bf.contentsquare.nethttps://ka.af.contentsquare.net | See Session Replay requests |
| Snapshot (EU) | https://s.contentsquare.nethttps://b.ba.contentsquare.nethttps://b.aa.contentsquare.net | See Snapshot capture |
| Snapshot (US) | https://s-aus1.contentsquare.nethttps://b.bf.contentsquare.nethttps://b.af.contentsquare.net | See Snapshot capture |
| Resources manager (EU) | https://srm.ba.contentsquare.nethttps://srm.aa.contentsquare.net | See Session Replay requests |
| Resources manager (US) | https://srm.bf.contentsquare.nethttps://srm.af.contentsquare.net | See Session Replay requests |
Wrong tag loaded in WebView
Section titled Wrong tag loaded in WebViewWhen using Manual tag injection for dual context (WebView and Browser tracking on the same webpage), the SDK injects a script that may load after the page, causing the wrong tag to load in the WebView. Use the following solution:
Add a query parameter to the URL of the page you are loading in the WebView:
webView.loadUrl("https://www.example.com/?isWebView=1")Then add it to the conditions in the page script itself:
function isWebView() { return navigator.userAgent.indexOf('CS_WebView') !== -1 || typeof CSJavascriptBridge != 'undefined' || window.CS_isWebView || new URLSearchParams(window.location.search).get('isWebView') === '1';}