Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Google Analytics send data back to Google?

Perhaps I am missing something, but I am just learning javascript.

My understanding of Single Origin Policy is that Google Analytics should not be able to send data back to Google.

How is it able to transmit send data to Google without violating the policy?

like image 362
Hortitude Avatar asked Jan 05 '09 20:01

Hortitude


People also ask

Does Google Analytics send data to Google?

They, not Google, control what data is collected and how it is used. They retain ownership of the data they collect using Google Analytics, and Google only stores and processes this data per their instructions — for example, to provide them with reports about how visitors use their sites and apps.

How is data sent to Google Analytics?

When the tracking code loads on the page, a hit is generated and then sent to Google Analytics. This hit gathers all of the known information about the user at that exact moment in time – a snapshot of information. This information is transmitted every time a hit is sent to GA.

What does Google Analytics do with my data?

Google Analytics is a platform that collects data from your websites and apps to create reports that provide insights into your business.


1 Answers

From what I can tell, a webpage includes the JavaScript file from Google, then that script dynamically adds an image to the page (http://www.google-analytics.com/__utm.gif) which contains the information required for logging.

SOP does not apply to scripts, images or CSS files that are dynamically added to a page. This is why you much trust whatever JavaScript files you include in your webpages, as they will have complete control over the page.

like image 160
Ryan Doherty Avatar answered Sep 19 '22 10:09

Ryan Doherty