apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
697 stars 159 forks source link

lazyload_images & tracking pixels: enable blacklisting common tracking pixel domains #888

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, tracking pixels will be deferred by the lazy loading filter.
Having a blacklist for a few common domains that serve these pixels for the 
purpose of excluding them in the image lazyloading filter would be useful.

Original issue reported on code.google.com by osch...@we-amp.com on 7 Feb 2014 at 10:55

GoogleCodeExporter commented 9 years ago
Seems reasonable. Do you have a list of some common ones that you've come 
across already?

Original comment by j...@google.com on 7 Feb 2014 at 10:58

GoogleCodeExporter commented 9 years ago
Yes, a few that look common that I just came accross:

googleads.g.doubleclick.net
ad.doubleclick.net
3814442.fls.doubleclick.net
pixel.quantserve.com

Perhaps consolidating the first three to *.doubleclick.net would be OK.
I will try to come up with more 

Original comment by osch...@we-amp.com on 7 Feb 2014 at 11:10

GoogleCodeExporter commented 9 years ago
I wonder if you could get a list of potential tracking filters from 
organizations that block ad domains.  I'm not sure that all of them use the 
pixel method, but it's probably not advisable to optimize javascript or images 
used for tracking (especially since it can be used for installation 
verification.)

With lazy loading enabled, requests for the tracking image weren't occurring 
until I scrolled down to the bottom of the webpage. Partial hostnames that I 
recently came across are:
    *.c-col.com
    ad.doubleclick.net
    pixel.quantserve.com
    *.doubleclick.net  (ie, googleads.g.doubleclick.net)

Ghostery claims to profile and cull over 1,800 trackers and 2,100 tracking 
patterns.
https://www.ghostery.com/features

This service has identified 2,518 ad server hostnames that it uses to create a 
hostfile to block ad servers.
http://pgl.yoyo.org/adservers/

Original comment by youthpas...@gmail.com on 7 Feb 2014 at 11:17

GoogleCodeExporter commented 9 years ago
One other thing we should probably do is block lazyload for images whose area 
on the page is given as 1px or less in the html.  A lot of these tracking 
images include image size in the markup.

Original comment by jmaes...@google.com on 8 Feb 2014 at 9:33