From 5cf82e4ef7b2858442d93713f159fa2cec6278a8 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Mon, 24 Oct 2016 11:08:19 +0100 Subject: [PATCH] Add Metabase events --- services/web/public/coffee/main/plans.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/public/coffee/main/plans.coffee b/services/web/public/coffee/main/plans.coffee index 4817c2d12c..79ed3afe46 100644 --- a/services/web/public/coffee/main/plans.coffee +++ b/services/web/public/coffee/main/plans.coffee @@ -312,6 +312,7 @@ define [ if $scope.shouldABTestPlans sixpack.participate 'plans-1610', ['default', 'heron', 'ibis'], (chosenVariation, rawResponse)-> $scope.plansVariant = chosenVariation + event_tracking.sendMB 'plans-page', {plans_variant: chosenVariation} if chosenVariation in ['heron', 'ibis'] # overwrite student plans with alternative for currency, _v of $scope.plans @@ -333,6 +334,7 @@ define [ $scope.currencyCode = newCurrency $scope.signUpNowClicked = (plan, annual)-> + event_tracking.sendMB 'plans-page-start-trial', {plan} if $scope.shouldABTestPlans and plan in ['student', 'collaborator'] sixpack.convert 'plans-1610', () -> if $scope.ui.view == "annual"