O
O
ostrogorcev2016-01-22 11:42:07
Google
ostrogorcev, 2016-01-22 11:42:07

Will Google Analytics be active when requested via cURL?

Hello!
Google Analytics is powered by JS.
Will she see the user if we send a request to the site via cURL?
As I understand it, no. Are there analogues?
How about PhantomJS? Is it possible to send headers through it? Those. for example referer-a?
Thank you!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey Burov, 2016-01-22
@BuriK666

in phantomjs it will be, you can substitute your own headers.

S
sim3x, 2016-01-22
@sim3x

www.seleniumhq.org

D
Dimonchik, 2016-01-22
@dimonchik2013

re-read my answer
PHP cURL. How to change referer-a with parameters?
https://developers.google.com/analytics/devguides/...

A
Alexey Sundukov, 2016-01-22
@alekciy

Of course, it will not work through curl, it cannot JS and build the DOM. PhantomJS, Slimer, CasperJS (a higher-level add-on on the last two, so it's better to use it) of course they can, the question arises, why ?! Google has great, stable APIs . The necessary data can always be obtained through them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question