-
-
Save dhh/360f4dc7ddbce786f8e82b97cdad9d20 to your computer and use it in GitHub Desktop.
module Entry::TrackerBlocking | |
extend ActiveSupport::Concern | |
included do | |
has_many :blocked_trackers | |
end | |
email_service_blockers = { | |
"ActiveCampaign" => /lt\.php(.*)?l\=open/, | |
"AWeber" => "openrate.aweber.com", | |
"Bananatag" => "bl-1.com", | |
"Boomerang" => "mailstat.us/tr", | |
"Campaign Monitor" => /cmail(\d+)\.com\/t\//, | |
"Cirrus Insight" => "tracking.cirrusinsight.com", | |
"Close" => "close.com/email_opened", | |
"Constant Contact" => "rs6.net/on.jsp", | |
"ContactMonkey" => "contactmonkey.com/api/v1/tracker", | |
"ConvertKit" => "convertkit-mail.com/o", | |
"Critical Impact" => "portal.criticalimpact.com/c2/", | |
"Emarsys" => "emarsys.com/e2t/o/", | |
"Gem" => "zen.sr/o", | |
"Getnotify" => "email81.com/case", | |
"GetResponse" => "getresponse.com/open.html", | |
"GrowthDot" => "growthdot.com/api/mail-tracking", | |
"FreshMail" => /\/o\/(\w){10,}\/(\w){10,}/, | |
"Front" => /app\.frontapp\.com\/(.*)?\/seen/, | |
"Hubspot" => /t\.(hubspotemail|hubspotfree|signaux|senal|sidekickopen|sigopn)/, | |
"iContact" => "click.icptrack.com/icp", | |
"Intercom" => [ "via.intercom.io/o", "intercom-mail.com/via/o" ], | |
"Litmus" => "emltrk.com", | |
"Mailchimp" => "list-manage.com/track", | |
"Mailgun" => /email\.(mailgun|mg)(.*)?\/o/, | |
"Mailjet" => "mjt.lu/oo", | |
"Mailspring" => "getmailspring.com/open", | |
"MailTrack" => [ "mailtrack.io/trace", "mltrk.io/pixel" ], | |
"Mandrill" => "mandrillapp.com/track", | |
"Marketo" => "resources.marketo.com/trk", | |
"MixMax" => /(email|track)\.mixmax\.com/, | |
"Mixpanel" => "api.mixpanel.com/track", | |
"NetHunt" => /nethunt\.co(.*)?\/pixel\.gif/, | |
"Newton" => "tr.cloudmagic.com", | |
"Outreach" => "api/mailings/opened", | |
"phpList" => "phplist.com/lists/ut.php", | |
"Polymail" => "polymail.io", | |
"Postmark" => "pstmrk.it/open", | |
"Return Path" => "returnpath.net/pixel.gif", | |
"Sailthru" => "sailthru.com/trk", | |
"Salesforce" => "nova.collect.igodigital.com", | |
"SendGrid" => "wf/open?upn", | |
"Sendy" => "/sendy/t/", | |
"Streak" => "mailfoogae.appspot.com", | |
"Superhuman" => "r.superhuman.com", | |
"Thunderhead" => "na5.thunderhead.com", | |
"Tinyletter" => /tinyletterapp\.com.*?open\.gif/, | |
"YAMM" => "yamm-track.appspot", | |
"Yesware" => "t.yesware.com", | |
"Zendesk Sell" => "futuresimple.com/api/v1/sprite.png" | |
}.collect { |service, pattern| EmailServicePixel.new(service, pattern) } | |
specialized_blockers = [ LitmusCssPixelBlocker.new, GmassPixelBlocker.new ] | |
# Need to make sure GenericSmallPixel is always the last one on the list. Otherwise, it could catch pixels for some | |
# of the services we're explicitly tracking. | |
TRACKING_BLOCKERS = email_service_blockers + specialized_blockers + [ GenericSmallPixel.new ] | |
end |
I've been working at this for a couple months for Simplify Gmail and I now block over 170 different trackers.
Here is my list: https://gist.github.com/leggett/8c2ab9735037cb66c218fdbe898ddf68
EDIT: Moved here https://github.com/leggett/simplify-trackers
Just a note... When I send out a newsletter via Mailchimp, the app notifies me the next day about the percent of recipients that didn't open the email and prompts me to press a single button to resend the newsletter to "non openers" ... One downside I see to this approach: Hey users will get a lot more of those "non opener" targeted emails.
Here is the one for http://stayz.com.au and/or http://homeaway.com and/or http://vrbo.com that they seem to use in all their confirmations, news, etc emails: a 1x1px img loaded from http://sp.trk.homeaway.com/q/*, that is, the server is http://sp.trk.homeaway.com.
The exact element is:
<img border="0" width="1" height="1" src="http://sp.trk.homeaway.com/q/some-tracking-code"/>
<img src="https://bowtie.mailbutler.io/tracking/hit/3ba8ceb5-99ea-4b6b-9033-51f18a5448b7/b3f7f8cc-2871-4a40-8abd-d4a1d67d3928/t.gif" align="left" width="0" height="0" style="width:0;height:0;border:0;" title="" alt="" id="MailbutlerTrackingPixel" class="lp-rich-link">
bowtie.mailbutler.io/tracking/hit/(.*)/t.gif
@dhh Is this list being actively maintained?
I've moved Simplify's tracker list from gist to an actual repo here: https://github.com/leggett/simplify-trackers
Has anyone seen this pixel at the end of a URL? +trackingPixel+
I haven't.
Oracle's Bluekai.
Unfamiliar with ruby, regex might be off.
Quoted printable encoded:
UTF-8
Regex