Your tracking script fails in native social media browsers because they often block or strip referrer data and background requests, so consider using server-side redirects or short links with UTM tracking instead.