From 368e5e24eee0f97b73c879a61dcde8120718c06c Mon Sep 17 00:00:00 2001 From: Matt Lott Date: Thu, 18 Dec 2014 16:21:04 -0800 Subject: [PATCH 1/5] Help videos A/B results - watched more videos? Shows which style per-level yielded more additional videos watched. --- .../mongodb/queries/helpVideoStylesABTest.js | 167 ++++++++++++++++-- 1 file changed, 155 insertions(+), 12 deletions(-) diff --git a/scripts/analytics/mongodb/queries/helpVideoStylesABTest.js b/scripts/analytics/mongodb/queries/helpVideoStylesABTest.js index 7f514bdcf..1fd6a940a 100644 --- a/scripts/analytics/mongodb/queries/helpVideoStylesABTest.js +++ b/scripts/analytics/mongodb/queries/helpVideoStylesABTest.js @@ -15,22 +15,25 @@ // - Need a hard start date when the help button presented -// Intial production deploy completed at 12:42am 12/18/14 PST -var testStartDate='2014-12-14T08:42:00.000Z'; +// 12:42am 12/18/14 PST - Intial production deploy completed +var testStartDate = '2014-12-14T08:42:00.000Z'; +// 12:29pm 12/18/14 PST - 2nd deploy w/ originals for dungeons-of-kithgard and second-kithmaze +// TODO: move this date up to avoid prod deploy transitional data messing with us. +// testStartDate = '2014-12-14T20:29:00.000Z'; +testStartDate = '2014-12-14T22:29:00.000Z'; function printVideoCompletionRates() { print("Querying for help video events..."); var videosCursor = db['analytics.log.events'].find({ $and: [ - {"created": { $gte: ISODate(testStartDate)}}, - {$or : [ - {"event": "Start help video"}, - {"event": "Finish help video"} - ]} + {"created": { $gte: ISODate(testStartDate)}}, + {$or : [ + {"event": "Start help video"}, + {"event": "Finish help video"} + ]} ] }); - print("Building video progression data..."); // Build: