Doubt: Does Google Analysts JS run in PHP's file_get_contents function?

0

I have a site where you have the Google Analytics JS, it happens that from time to time I run a function in file_get_contents in PHP to get an information on that site. My question is: can Google Analitycs identify the connection via file_get_contents?

    
asked by anonymous 05.06.2017 / 14:57

1 answer

1

No, because this occurs on the server side. As with the PHP process, Google Analitycs will not be able to get any data. After completing the PHP process, the output is sent to the browser containing the HTML or not. Once it has been submitted and the page rendered, Google Analytics starts collecting the information.

Therefore, the file_get_contents function will not be read by Google Analitycs.

    
05.06.2017 / 15:08