r78639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78638‎ | r78639 | r78640 >
Date:22:10, 20 December 2010
Author:rfaulk
Status:deferred
Tags:
Comment:
Enabled reporting for the latest running tests based on utm campaign.
Modified paths:
  • /trunk/fundraiser-statistics/bash/plot_build_hr.sh (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/fundraiser_reporting.py (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/run_plots.py (modified) (history)
  • /trunk/fundraiser-statistics/reporting/fundraiser_analytics.html (modified) (history)
  • /trunk/fundraiser-statistics/reporting/reporting.html (modified) (history)
  • /trunk/fundraiser-statistics/reporting/reporting_latest.html (added) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/fundraiser_reporting.py
@@ -505,27 +505,27 @@
506506 if type == 'LP':
507507 query_name = 'report_LP_metrics'
508508 campaign = '[0-9](JA|SA|EA)[0-9]'
509 - title = query_name + '_' + metric_name
510 - fname = title + '.png'
 509+ title = metric_name + ': ' + start_time + ' -- ' + end_time
 510+ fname = query_name + '_' + metric_name + '.png'
511511 elif type == 'BAN':
512512 query_name = 'report_banner_metrics'
513513 campaign = '[0-9](JA|SA|EA)[0-9]'
514 - title = query_name + '_' + metric_name
515 - fname = title + '.png'
 514+ title = metric_name + ': ' + start_time + ' -- ' + end_time
 515+ fname = query_name + '_' + metric_name + '.png'
516516 elif type == 'BAN-TEST':
517517 r = self.get_latest_campaign()
518518 query_name = 'report_banner_metrics'
519519 campaign = r[0]
520520 start_time = r[1]
521 - title = query_name + '_' + metric_name + '_' + campaign
522 - fname = title + '.png'
 521+ title = metric_name + ': ' + start_time + ' -- ' + end_time + ', CAMPAIGN =' + campaign
 522+ fname = query_name + '_' + metric_name + '_latest' + '.png'
523523 elif type == 'LP-TEST':
524524 r = self.get_latest_campaign()
525525 query_name = 'report_LP_metrics'
526526 campaign = r[0]
527527 start_time = r[1]
528 - title = query_name + '_' + metric_name + '_' + campaign
529 - fname = title + '.png'
 528+ title = metric_name + ': ' + start_time + ' -- ' + end_time + ', CAMPAIGN =' + campaign
 529+ fname = query_name + '_' + metric_name + '_latest' + '.png'
530530 else:
531531 sys.exit("Invalid type name - must be 'LP' or 'BAN'.")
532532
Index: trunk/fundraiser-statistics/fundraiser-scripts/run_plots.py
@@ -27,4 +27,8 @@
2828 blpr.run('LP', 'don_per_view')
2929 blpr.run('BAN', 'don_per_imp')
3030 blpr.run('BAN', 'click_rate')
31 -blpr.run('LP', 'conversion_rate')
\ No newline at end of file
 31+blpr.run('LP', 'conversion_rate')
 32+
 33+# Run the banner/lp plots
 34+blpr.run('LP-TEST', 'don_per_view')
 35+blpr.run('BAN-TEST', 'don_per_imp')
\ No newline at end of file
Index: trunk/fundraiser-statistics/reporting/reporting_latest.html
@@ -0,0 +1,56 @@
 2+
 3+
 4+<!-- Add style sheet -->
 5+
 6+<html>
 7+
 8+<head>
 9+
 10+<title>Wikimedia Fundraiser Reporting</title>
 11+<!--
 12+<script type="text/javascript">
 13+
 14+ var _gaq = _gaq || [];
 15+ _gaq.push(['_setAccount', 'UA-20321172-1']);
 16+ _gaq.push(['_trackPageview']);
 17+
 18+ (function() {
 19+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 20+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 21+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 22+ })();
 23+
 24+</script>
 25+-->
 26+</head>
 27+
 28+<body>
 29+
 30+<h1>Fundraiser Reporting - Latest Tests</h1>
 31+
 32+<br>
 33+
 34+
 35+<p>
 36+This page will be used for graphical reporting of fundraiserrelated data for the latest tests.
 37+</p>
 38+<br>
 39+
 40+<h3><u>Banners Donations Per Impression</u></h3>
 41+<OBJECT WIDTH="1600" HEIGHT="800" data="report_banner_metrics_don_per_imp_latest.png" type="image/png">
 42+<p>Total donation amounts over a given period.</p>
 43+</OBJECT>
 44+
 45+<br>
 46+
 47+<h3><u>Landing Pages Donations Per View</u></h3>
 48+<OBJECT WIDTH="1600" HEIGHT="800" data="report_LP_metrics_don_per_view_latest.png" type="image/png">
 49+<p>Total donation amounts over a given period.</p>
 50+</OBJECT>
 51+
 52+<br>
 53+
 54+
 55+</body>
 56+
 57+</html>
\ No newline at end of file
Index: trunk/fundraiser-statistics/reporting/fundraiser_analytics.html
@@ -29,7 +29,8 @@
3030 <h1><u>Wikimedia Fundraiser Analystics</u></h1>
3131 <br>
3232
33 -<h2><a href="http://fundraising.wikimedia.org/stats/reporting.html">Reporting</a></h2>
 33+<h3><a href="http://fundraising.wikimedia.org/stats/reporting.html">Reporting</a></h3>
 34+<h3><a href="http://fundraising.wikimedia.org/stats/reporting_latest.html">Reporting - Latest Test</a></h3>
3435
3536 <br>
3637
Index: trunk/fundraiser-statistics/reporting/reporting.html
@@ -32,7 +32,7 @@
3333
3434
3535 <p>
36 -This page will be used for graphical reporting of the fundraiser.
 36+This page will be used for graphical reporting of the fundraiser related data.
3737 </p>
3838 <br>
3939
@@ -69,7 +69,7 @@
7070
7171 <br>
7272
73 -<h3><u>Landing Pages Donations Per Donation Click (Conversion Rate)</u></h3>
 73+<h3><u>Landing Pages Donations Per Donation Click (Completion Rate)</u></h3>
7474 <OBJECT WIDTH="1600" HEIGHT="800" data="report_LP_metrics_conversion_rate.png" type="image/png">
7575 </OBJECT>
7676
Index: trunk/fundraiser-statistics/bash/plot_build_hr.sh
@@ -9,4 +9,7 @@
1010 cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/report_banner_metrics_don_per_imp.png /srv/org.wikimedia.fundraising/stats/
1111 cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/report_total_amounts_by_hr.png /srv/org.wikimedia.fundraising/stats/
1212 cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/report_banner_metrics_click_rate.png /srv/org.wikimedia.fundraising/stats/
13 -cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/report_LP_metrics_conversion_rate.png /srv/org.wikimedia.fundraising/stats/
\ No newline at end of file
 13+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/report_LP_metrics_conversion_rate.png /srv/org.wikimedia.fundraising/stats/
 14+
 15+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/report_LP_metrics_don_per_view_latest.png /srv/org.wikimedia.fundraising/stats/
 16+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/report_banner_metrics_don_per_imp_latest.png /srv/org.wikimedia.fundraising/stats/
\ No newline at end of file

Status & tagging log