I have a vague understanding that the script tag you embed is igniting a script that collects logs from google-analytics.com/analytics.js, but I don't understand it at all and I don't know how it works.
Therefore, I have the following questions.
·How does Google collect the user's IP address and store the data in the analysis.js process?(I don't understand this the best, I always wonder how they extract all kinds of data.)
·Is it easy for users not to get caught in cross origin problems in many and unspecified fields?
·Installing a js file like google-analytics.com/analytics.js on the server and accessing it based on the script file installed by the user. Is the following process used to do so?
(window, document, 'script', '//www.google-analytics.com/analytics.js','ga');
There is a function called window.document.write, but is window.document.script a function that Google created independently?
Let's google it.Read the Google commentary.
It's against the rules to just post links, but it's not a one-word story.
The point is to collect the data and then push the tag of the URL containing the information into the DOM to load the 1-pixel GIF.There is no problem with origin because it is an image.
Previously, there was a Google Analytics commentary on @IT (link below)
I think it will be helpful.
© 2023 OneMinuteCode. All rights reserved.