News for hackers. Stuff that matters.
Re:Show HN: Bypassing ad blockers for Google Analytics by beagle3 on Tuesday February 26, 2019 @04:57AM (#19253133)
Meh.

If you're using GA to prove your site's worth, e.g. in some M&A deal, this is useless - your proxying means that you can fudge numbers and thus is no better than anything else you say. (This is a significant use case among looking-for-exit startups).

If you're using GA to get insight about your website, it would be somewhat useful, but not really - because GA would not be able to correlate the cookies to figure out the demographics, etc (and I don't know how much it would trust Via / Proxy-for headers, so other statistics it gives you are also limited).

Also, if you have non trivial traction, you're going to get flagged by their fraud filters.

You're probably better off running a local Piwik or whatever it's called these days.

Re:Show HN: Bypassing ad blockers for Google Analytics by Nextgrid on Tuesday February 26, 2019 @08:53AM (#19254277)
> If you're using GA to get insight about your website, it would be somewhat useful, but not really - because GA would not be able to correlate the cookies to figure out the demographics, etc (and I don't know how much it would trust Via / Proxy-for headers, so other statistics it gives you are also limited).

A proxy can send whatever cookie it wants to the server (a proxy can actually hide the fact it's a proxy and make itself look like a normal client).

However a lot of GA's stalking behaviour relies on having cookies on a specific Google-controlled domain. The proxy using a different domain means it won't be able to neither access nor set those cookies. Good for privacy but obviously (and thankfully) bad for the author's nefarious goal.

Re:Show HN: Bypassing ad blockers for Google Analytics by StefanoC on Tuesday February 26, 2019 @09:09AM (#19254379)
You think?

Looking at my dashboard now I can see data on language, browser, mobile model, referral, etc. I think some are just not present in the mobile version of analytics, but I can't see what data this would not be collecting.

> However a lot of GA's stalking behaviour relies on having cookies on a specific Google-controlled domain

This also reminds me that this simple technique can bypass 3rd party cookies rules.

> author's nefarious goal.

You clearly misunderstood my goal.

Re:Show HN: Bypassing ad blockers for Google Analytics by beagle3 on Wednesday February 27, 2019 @07:06AM (#19262699)
It doesn’t bypass 3rd party cookie rules.

You proxy cookie for party3.com

I proxy cookie for party3.com

But there isn’t a good way for me, you or party3.com to correlate these cookies unless we have some agreed out-of-cookie-band way to do so.

I’m sure those will come up, but they will be well known and likely easy to block once they are.

Re:Show HN: Bypassing ad blockers for Google Analytics by snowwrestler on Tuesday February 26, 2019 @10:44AM (#19255179)
> because GA would not be able to correlate the cookies to figure out the demographics, etc

It's my understanding that GA cookies do not actually do this.

When a site operator turns on demographic reporting in GA (which is optional), it adds Doubleclick cookies in order to provide that information to the site operator. I know because I did this and I had to update my privacy policy to reflect the Doubleclick cookie (GA prompts the site operator to do this).

It seems like people have come to take it on faith that GA, in its default installation, tracks users across all GA and Google properties in order to improve their ad targeting profile. If there is documentation of that, could someone link it for me?

Maybe I'm just out of date, but I don't think GA does that out of the box. In fact GA expressly forbids site operators from pushing any data into GA (via custom variables etc) that would help them identify users.

Re:Show HN: Bypassing ad blockers for Google Analytics by beagle3 on Wednesday February 27, 2019 @07:10AM (#19262718)
GA surely delivers that data to google, and tries to correlate through a GA specific domain.

Now, they might not provide it to the site owner unless they opt in (to also share it with DoubleClick or whatnot), and they might pinky swear not to use it (though I have never seen that promise myself).

But using GA, a site makes your naive browser send all that data to google. Why would you assume it is not being used? Does it matter if for now it is only directly visible to google?

Re:Show HN: Bypassing ad blockers for Google Analytics by lingz on Tuesday February 26, 2019 @07:29AM (#19253706)
If you are proving your site's worth, you could just use do analytics on anonymized server logs rather than relying on this technique to get GA to work.
Re:Show HN: Bypassing ad blockers for Google Analytics by StefanoC on Tuesday February 26, 2019 @05:25AM (#19253236)
Could you please expand on fudging numbers and fraud filters?

The original question that I was trying to answer was if the numbers that I was seeing for mobile users were skewed by how much more difficult it is to get an ad blocker for mobile.

Re:Show HN: Bypassing ad blockers for Google Analytics by Nextgrid on Tuesday February 26, 2019 @11:41AM (#19255803)
Fraud filters is about GA not expecting such a large number of events from a single IP. You’d be sending all your visitors’ events from that single IP - at some point GA will ignore your traffic or give you a captcha (effectively blocking the analytics because it’s not designed to handle the captcha response).
Re:Show HN: Bypassing ad blockers for Google Analytics by beagle3 on Wednesday February 27, 2019 @07:13AM (#19262728)
Then just run an old school analysis on your server logs. Some 20 years ago, I was using webalyzer, it probably still exists and I am sure that are alternatives.

Putting google into the mix, through a proxy or not, will definitely skew your results.

Re:Show HN: Bypassing ad blockers for Google Analytics by linkmotif on Tuesday February 26, 2019 @08:24AM (#19254035)
This would be a problem. What Google cross site tracking cookies does GA send back to Google? I didn’t see any in the documentation.
Re:Show HN: Bypassing ad blockers for Google Analytics by beagle3 on Wednesday February 27, 2019 @07:14AM (#19262738)
GA has a unique user cookie on their domain, and the visited URL on yours (as well as other metrics). What else were you expecting?