mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Track subscriptions in metabase with AB test variant.
This commit is contained in:
parent
5a82cebcff
commit
991626692b
2 changed files with 13 additions and 3 deletions
|
@ -2,7 +2,7 @@ div#history(ng-show="ui.view == 'history'")
|
||||||
span(ng-controller="HistoryPremiumPopup")
|
span(ng-controller="HistoryPremiumPopup")
|
||||||
.upgrade-prompt(ng-show="!project.features.versioning")
|
.upgrade-prompt(ng-show="!project.features.versioning")
|
||||||
|
|
||||||
div(sixpack-switch="teaser-track-changes")
|
div(sixpack-switch="teaser-history")
|
||||||
.message(
|
.message(
|
||||||
sixpack-default
|
sixpack-default
|
||||||
ng-show="project.owner._id == user.id"
|
ng-show="project.owner._id == user.id"
|
||||||
|
|
|
@ -467,6 +467,16 @@ define [
|
||||||
$scope.startFreeTrial = (source) ->
|
$scope.startFreeTrial = (source) ->
|
||||||
ga?('send', 'event', 'subscription-funnel', 'compile-timeout', source)
|
ga?('send', 'event', 'subscription-funnel', 'compile-timeout', source)
|
||||||
|
|
||||||
|
switch source
|
||||||
|
when "dropbox"
|
||||||
|
sixpack.participate 'teaser-dropbox-text', ['default', 'dropbox-focused'], (variant) ->
|
||||||
|
event_tracking.sendMB "subscription-start-trial", { source, variant }
|
||||||
|
|
||||||
|
when "history"
|
||||||
|
sixpack.participate 'teaser-history', ['default', 'focused'], (variant) ->
|
||||||
|
event_tracking.sendMB "subscription-start-trial", { source, variant }
|
||||||
|
|
||||||
|
else
|
||||||
event_tracking.sendMB "subscription-start-trial", { source }
|
event_tracking.sendMB "subscription-start-trial", { source }
|
||||||
|
|
||||||
window.open("/user/subscription/new?planCode=student_free_trial_7_days")
|
window.open("/user/subscription/new?planCode=student_free_trial_7_days")
|
||||||
|
|
Loading…
Reference in a new issue