Could use Netlify edge function to block this traffic which us almost 100% bots and prevent it from cluttering up GA.
// in netlify/edge-functions/block-countries.ts
export default async (request: Request) => {
const country = request.headers.get("x-nf-geo-country");
if (country === "CN" || country === "SG") {
return new Response("Forbidden", { status: 403 });
}
return fetch(request);
};
# in netlify.toml
[[edge_functions]]
function = "block-countries"
path = "/*"
Could use Netlify edge function to block this traffic which us almost 100% bots and prevent it from cluttering up GA.