Answer the question
In order to leave comments, you need to log in
Why doesn't Google Analytics see the PhantomJS referrer?
Hello. According to the documentation, I set up the phantom so that it is visible as, for example, chrome. Substituted the user agent - works. Permission - works. I substitute the referrer - it goes like direct traffic. And you need it as search or social. Here is the config from the code:
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36';
page.customHeaders = {'Referer': 'https://google.com'};
Answer the question
In order to leave comments, you need to log in
Referer: https://google.com
Jumping from the main page of Google? Are you seriously?
Open Developoer Tools -> Network and see what a real request looks like when you click on a link from SERP.
Notice what the referrer is. And try to guess the values of all the fields in the URL.
Hit: These UIDs are there just to track uniques in real traffic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question