ad block tracking google [-> EasyPrivacy]

Here you should report unblocked ads, trackers, social media items, annoyances or leftovers from blocked content.
Locked
fanno
Site Member
Site Member
Posts: 38
Joined: Fri Aug 01, 2008 3:05 pm

ad block tracking google [-> EasyPrivacy]

Post by fanno »

not sure what the consequence is ... but i founded on. http://ekstrabladet.dk

they have the following code:

Code: Select all


<!-- Escenic Analysis Engine client script start -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2135460-1");
pageTracker._trackPageview();
} catch(err) {}</script>
...
....
....
<script language="javascript">
jQuery(document).ready(function() {
jQuery(".xmain-head").find('*[src*=http://aoimages.s3.amazonaws.com]').each(function(index) {
pageTracker._trackEvent('AidOnline', 'Blocked');
});
});
</script>
<script>
var checkad = document.getElementsByTagName("script");
var adinstalled = false;
for(var i = 0; i < checkad.length; i++) {
var script = checkad[i];
if (script.style.display == "none") {
adinstalled = true;
}
}
if (adinstalled == true) {
pageTracker._trackEvent('AdBlocker', 'Installed');
}
</script>
in turn to block this tracking we need to block

Code: Select all


http://www.google-analytics.com/ga.js
http://ssl.google-analytics.com/ga.js
might be ok to do just:

Code: Select all


http://*.google-analytics.com/ga.js

altho i am not sure what the will really do ... but i don't like being tracked! one could say its fine as long as they are not "stopping" us from using adblock! like http://bt.dk/, and more and more sites out there.
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

Google Analytics is already blocked in EasyPrivacy (the subscription to block tracking): http://easylist.adblockplus.org/
fanno
Site Member
Site Member
Posts: 38
Joined: Fri Aug 01, 2008 3:05 pm

Post by fanno »

wops ! sorry i was not aware of that list. i am sorry !
Google Analytics Hater
Guest

Post by Google Analytics Hater »

Are you absolutely sure Google Analytics is in the EasyList? I always assumed it was, but found it was displaying in the status bar many times. I checked the blockable items and found it wasn't blocked. I've re-subscribed to EasyList + EasyPrivacy and still no mention of google-analytics.com in any of the filters.
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

It caused too many false positives, but here is a way to block it: https://adblockplus.org/forum/viewtopic ... 7886#27886
Google Analytics Hater
Guest

Post by Google Analytics Hater »

How could using the above code,

Code: Select all

 |http://*.google-analytics.com/ga.js 
give false positives?
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

OK, not "false positives" but it causes problems. Check for example http://www.yestosafesex.com/ or other sites mentioned here: https://adblockplus.org/forum/viewtopic ... 7677#27677 . Most of the time, it's some links that are not clickable because they are tracked like the download on http://earth.google.com/
Google Analytics Hater
Guest

Post by Google Analytics Hater »

Oh, I see. It would appear that after a decade people still don't know how to make websites that degrade gracefully with lack of JavaScript. Sad times.
se224141
Forum Junkie
Forum Junkie
Posts: 149
Joined: Fri Jun 26, 2009 4:28 pm

Post by se224141 »

Ares2 wrote:OK, not "false positives" but it causes problems. Check for example http://www.yestosafesex.com/ or other sites mentioned here: https://adblockplus.org/forum/viewtopic ... 7677#27677 . Most of the time, it's some links that are not clickable because they are tracked like the download on http://earth.google.com/
That entry is not the problem ... http://www.yestosafesex.com/ is blank ...
(view safely here)
http://web-sniffer.net/?url=www.yestosafesex.com&submit

This page also uses the same entry and loads fine ...
http://www.yestosafesex.com/spotify/
User avatar
Erunno
Emeritus Contributor
Emeritus Contributor
Posts: 1866
Joined: Fri Dec 05, 2008 5:21 pm

Post by Erunno »

se224141 wrote:That entry is not the problem ... http://www.yestosafesex.com/ is blank ...
Works for me.
Zombie Contributor
mutter
New Member
New Member
Posts: 2
Joined: Wed Jul 08, 2009 2:39 pm

Post by mutter »

How come these links:

Code: Select all

http://www.google-analytics.com/ga.js
https://ssl.google-analytics.com/ga.js
are not on the current EasyPrivacy list (https://easylist.adblockplus.org/easyprivacy.txt)

For reference, the header of the list I'm looking at is:

Code: Select all

[Adblock Plus 1.0.2]
! Checksum: lX+Gc9WWWhTXwCJFW7AUBA
!
! Rick752's EasyPrivacy - Tracking filter
! https://easylist.adblockplus.org/
! License: http://creativecommons.org/licenses/by-sa/3.0/
! Last modified: 08 Jul 2009 0:11 UTC
! Expires: 5 days (updates automatically every 5 days)
!
! Please report unblocked trackers or mistakenly blocked content:
! Forum: http://forums.lanik.us/
! E-Mail: ares -at- ares2.at
urchin.js is not being listed either.

I know in the past these used to be there, but to my surprise, they are no longer listed.
User avatar
Erunno
Emeritus Contributor
Emeritus Contributor
Posts: 1866
Joined: Fri Dec 05, 2008 5:21 pm

Post by Erunno »

mutter wrote:...
This has already been answered in this particular thread.
Zombie Contributor
mutter
New Member
New Member
Posts: 2
Joined: Wed Jul 08, 2009 2:39 pm

Post by mutter »

doh. my apologies for missing that.
Google Analytics Hater
Guest

Post by Google Analytics Hater »

I might have a better solution. Let's allow the script to load, but block the subsequent requests it makes:

Code: Select all

*.google-analytics.com/__utm.gif*
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

Code: Select all

/__utm.gif
is in EasyPrivacy since Nov 8th, 2008. :)
User avatar
Oxwil
Senior Member
Senior Member
Posts: 54
Joined: Mon Jun 08, 2009 10:24 am
Location: Dubai, United Arab Emirates

Post by Oxwil »

Ah! So that's why - to my surprise - I discovered the Google Analytics thing allowed to load. But still, the Google Analytics link not blocked annoys me when I view the blockable articles. :arrow:
Everything is Possible
Google Analytics Hater
Guest

Post by Google Analytics Hater »

Hmm... Very strange. I thought I found that not to be blocking yesterday, but it's definitely there now.
User avatar
Oxwil
Senior Member
Senior Member
Posts: 54
Joined: Mon Jun 08, 2009 10:24 am
Location: Dubai, United Arab Emirates

Post by Oxwil »

Yeah, the thing is not directly blocked, just the process it initiates. :arrow:
Everything is Possible
User avatar
Oxwil
Senior Member
Senior Member
Posts: 54
Joined: Mon Jun 08, 2009 10:24 am
Location: Dubai, United Arab Emirates

Post by Oxwil »

May I ask you to block the root Google Analytics code? It maybe just a suspicion, but most of the time my website loading seems to be held up by this.

And this thing maybe out of the blue but, I think allowing this to load without sending responses to GA may allow them to detect adblocking software; so I wanna recommend the blockage of the root element. :arrow:
Everything is Possible
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

The problems blocking it still exist, so if you read this thread you should know that I can't add it to EasyPrivacy.

Also, this doesn't detect ad-blocking, it could only detect people using EasyPrivacy or a similar tracking filter but I don't even know that for sure. Even if it could, there would be TONS of easier and more reliable ways to detect that.
User avatar
Oxwil
Senior Member
Senior Member
Posts: 54
Joined: Mon Jun 08, 2009 10:24 am
Location: Dubai, United Arab Emirates

Post by Oxwil »

Aw, sucks. I noticed that when pages are loading that the website appears first, then GA loads which takes at least 3 - 8s, & finally the rest of the images & stuff loads. :-(
Everything is Possible
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

If you want, you can block Goolge Analytics without causing problems this way: https://adblockplus.org/forum/viewtopic ... 7886#27886
User avatar
Oxwil
Senior Member
Senior Member
Posts: 54
Joined: Mon Jun 08, 2009 10:24 am
Location: Dubai, United Arab Emirates

Post by Oxwil »

Code: Select all

|http://*.google-analytics.com/*
This seems to work pretty well~. :idea:
Everything is Possible
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

Slowly I start to think you a) want to make fun of me b) can't read this thread and the one on adblockplus.org carefully or c) your brain refuses to accept that blocking the GA scripts with whatever rule causes problems. ;-)

Last chance:

Blocking the Google Analytics scripts

Code: Select all

http://www.google-analytics.com/ga.js
http://www.google-analytics.com/urchin.js
causes problems on many sites due to the way the GA code is inserted in a website and because sites track links etc. via Google Analytics. So these will not work then.

Now you have these choices:

1. Don't block the Google Analytics scripts ---> No problems, but the script-request already sends basic data to Google
2. Block the Google Analytics scripts ---> Causes problems on MANY sites, see https://adblockplus.org/forum/viewtopic ... 7677#27677 for a few examples
3. Block the Google Analytics scripts AND use the Greasemonkey script from https://adblockplus.org/forum/viewtopic ... 7886#27886 ---> No problems and no script-request
User avatar
Erunno
Emeritus Contributor
Emeritus Contributor
Posts: 1866
Joined: Fri Dec 05, 2008 5:21 pm

Post by Erunno »

Ares2 wrote:3. Block the Google Analytics scripts AND use the Greasemonkey script from https://adblockplus.org/forum/viewtopic ... 7886#27886 ---> No problems and no script-request
Would it be also possible to use a similar solution to get rid of the Omniture/s_code scripts?
Zombie Contributor
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

I'm sure it is, but we need somebody to write us a script. :) Anyway, as s_code is hosted 1st party, nobody gets additional data from the script request.
User avatar
Oxwil
Senior Member
Senior Member
Posts: 54
Joined: Mon Jun 08, 2009 10:24 am
Location: Dubai, United Arab Emirates

Post by Oxwil »

So far I haven't encountered this problem with the website that seemed to load slowly due to GA, so I am OK with it for the time being.
Everything is Possible
User avatar
Erunno
Emeritus Contributor
Emeritus Contributor
Posts: 1866
Joined: Fri Dec 05, 2008 5:21 pm

Post by Erunno »

Oxwil wrote:So far I haven't encountered this problem with the website that seemed to load slowly due to GA, so I am OK with it for the time being.
Problems caused by blocking Google Analytics were never related to speed, but parts of a site simply not functioning correctly.
Zombie Contributor
User avatar
Oxwil
Senior Member
Senior Member
Posts: 54
Joined: Mon Jun 08, 2009 10:24 am
Location: Dubai, United Arab Emirates

Post by Oxwil »

I am talking about my case not the problems previously described. The core GA script loading was prioritized before other stuff on the site. Because it took it's time to load, the overall loading time for the site was slow. I blocked the core GA script from loading using the aforementioned code. And this blocking did not affect any websites I have visited so far. :arrow:
Everything is Possible
Locked