mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add Metabase events
This commit is contained in:
parent
8dfd487941
commit
5cf82e4ef7
1 changed files with 2 additions and 0 deletions
|
@ -312,6 +312,7 @@ define [
|
||||||
if $scope.shouldABTestPlans
|
if $scope.shouldABTestPlans
|
||||||
sixpack.participate 'plans-1610', ['default', 'heron', 'ibis'], (chosenVariation, rawResponse)->
|
sixpack.participate 'plans-1610', ['default', 'heron', 'ibis'], (chosenVariation, rawResponse)->
|
||||||
$scope.plansVariant = chosenVariation
|
$scope.plansVariant = chosenVariation
|
||||||
|
event_tracking.sendMB 'plans-page', {plans_variant: chosenVariation}
|
||||||
if chosenVariation in ['heron', 'ibis']
|
if chosenVariation in ['heron', 'ibis']
|
||||||
# overwrite student plans with alternative
|
# overwrite student plans with alternative
|
||||||
for currency, _v of $scope.plans
|
for currency, _v of $scope.plans
|
||||||
|
@ -333,6 +334,7 @@ define [
|
||||||
$scope.currencyCode = newCurrency
|
$scope.currencyCode = newCurrency
|
||||||
|
|
||||||
$scope.signUpNowClicked = (plan, annual)->
|
$scope.signUpNowClicked = (plan, annual)->
|
||||||
|
event_tracking.sendMB 'plans-page-start-trial', {plan}
|
||||||
if $scope.shouldABTestPlans and plan in ['student', 'collaborator']
|
if $scope.shouldABTestPlans and plan in ['student', 'collaborator']
|
||||||
sixpack.convert 'plans-1610', () ->
|
sixpack.convert 'plans-1610', () ->
|
||||||
if $scope.ui.view == "annual"
|
if $scope.ui.view == "annual"
|
||||||
|
|
Loading…
Reference in a new issue