Closed terion-name closed 5 years ago
Running in headless: false and watching network activity: without my evaluateOnNewDocument everything is fine, with it — collect requests from GA are just not sent
Oh, was my error:
Object.defineProperty(navigator, 'language', {get: () => ['en-US']});
shouldn't be array. fixed and all worked
How to properly imitate browser in puppeteer? Currently I use this:
I test it by watching realtime google analytics in realtime. If I remove setUserAgent and evaluateOnNewDocument (though using raw pluginStealth) — mu hit displays at GA realtime report. If I enable all this — GA doesn't report hit — seems to be detected as a bot and ignored.
What am I doing wrong?