Teilweiser Ausfallshare-external
Why does my Pixel Javascript access http://localhost when in an embedded web view on Android
6

We have a meta tracking pixel on a client website, embedded and tracking correctly using google tag manager. We also show some of the content from the site embedded in a web view in their Android app. We've noticed tha the Webview is throwing an error as the Pixel javascript attempts to access http://localhost. Android, by default since Android 9 disallows cleartext http connections unless explicitly enabled. We don't wish to enable this as it could be insecure. I have two questions 1. Anyone know why it accesses http://localhost ? 2. Why does it do it over an http not https? 3. could this be caused by a misconfiguration?

It is in the javascript retrieved from https://connect.facebook.net/signals/config/?v=2.9.167&r=stable&domain= &hme=&ex_m=

I did try and change the version and some time back, this code didn't reference localhost.

Is there some way I can disable this?

Dermot
Gefragt vor etwa 2 Monaten
Ausgewählte Antwort
2

We keep seeing this in GA since September 2024 (or earlier). WebSocket connection to 'ws://localhost:12387/' failed: Error in connection establishment: net::ERR_NOT_IMPLEMENTED

13. November um 05:12
Glenn