Fundraising tech/tools

Landing page impression counter edit

Tallies hits to landing pages at and Runs as a Django management task for some reason. [Operational details] are documented on wikitech.

It filters server logs and only considers a request to be a landing page hit if it matches certain patterns. In the table below, patterns are listed as prefixes of any wiki page title. For example, the Support_Wikipedia pattern would include

Wiki Included patterns Ignored patterns
  • L11
  • L12
  • L2011
  • L2012
  • WMF
  • Donate
  • Support_Wikipedia
  • Test_120511
  • Special:Landingcheck
  • Special:ContributionTracking
  • Special:RecentChanges
  • MediaWiki:
  • File:
  • Talk:
  • Terms_of_Use
  • New_Terms_of_use
  • New%20Terms%20of%20use
  • Feedback_privacy_statement
  • Home
  • Main_Page
  • Donate/Benefactor
  • Donate/Stories
  • Donate/Thank_You
  • Donate/Transparency
  • SOPA/Blackoutpage
  • L11
  • L12
  • L2011
  • L2012
  • WMF
  • WP
  • Special:FundraiserLandingPage (see note)

Special:FundraiserLandingPage on donatewiki is treated as a special case. For this special page, the 'landingpage' value is a tilde-separated list of these querystring parameters: "template", "appeal-template", "appeal", "form-template", and "form-countryspecific".

All landing page hits are added to the landingpageimpressions_raw table, including timestamp, utm_source, utm_campaign, utm_key, utm_medium, landingpage, project_id, language_id, and country_id.

Email click counts edit

Hits to donatewiki landing pages that include a contact_id parameter are also added to the donatewiki_unique table with timestamp, utm_source, utm_campaign, contact_id, and link_id. Each combination of utm_source and contact_id can only occur once in this table, so it should be an accurate count of the number of unique donors clicking some link in each email. These are aggregated in view donatewiki_counts by utm_source, utm_campaign, and link_id.