GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Uh, if a website has a standard google analytics script in it, where does that actually happen? I mean the webpage just spits out html code and your browser interprets it, right? So it's the individual browsers that execute those scripts and communicate with google analytics, right? Not the webpage? I'm not a programmer.
Uh, if a website has a standard google analytics script in it, where does that actually happen? I mean the webpage just spits out html code and your browser interprets it, right? So it's the individual browsers that execute those scripts and communicate with google analytics, right? Not the webpage? I'm not a programmer.
Welcome.
Yes, the inividual browsers execute the scripts. The scripts then might take further communication with Google Analytics or other sites, I haven't bothered to read them and let NoScript or ScriptBlock do the work.
The script in that context is run on your machine inside your browser, if you have allowed it to happen. Regardless of whether the script is run or not, the mere act of fetching it via HTTP or HTTPS allows the source site to observe that you have visited if they wish to track such things. When combined with cookies and / or web bugs (such as the FB "Like" button) and / or browser fingerprints, an individual user can be tracked and profiled in great detail.
If you want to see what the page is pulling in and what load it puts on your connnection, you can do that easily in Firefox or Chromium using the "Inspect Element" function. Either right-click on the page and choose "Inspect" or "Inspect Element" or press ctrl-shift-i for the same result. That will pull up an information panel and one of the tabs is "Network". Select that and then reload the page. It will show you what (unnecessary) pieces are being pulled, from where they are coming, and how long they took to get into your browser.
Then couldn't we copy the google analytics script from a website and put in on other websites? I mean if that scripts is executed on people's personal browsers and not at www.whatever.com, then couldn't any website send out an identical script with the same ID number or whatever and google analytics wouldn't know the difference?
You could just "sell your web-browser statistics data to Google," if they wanted it, but they actually want to spy on your end-user, to learn his IP-address and so on. So, Google Analytics consists of encoded JavaScript programming which will be executed by the end-user's browser.
Then couldn't we copy the google analytics script from a website and put in on other websites? I mean if that scripts is executed on people's personal browsers and not at www.whatever.com, then couldn't any website send out an identical script with the same ID number or whatever and google analytics wouldn't know the difference?
I don't know Google Analytics well, but I did find this question interesting enough to google (yeah I know...) Here's a story about a site being caught doing that.
Google Analytics, of course, uses a key ("nonce") system to uniquely identify their data streams. If you simply copied an analytics package, it wouldn't be yours.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.