mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
TRack free trial clicks and redirect to subscription page
This commit is contained in:
parent
05b078ec92
commit
ee7013c1ee
4 changed files with 11 additions and 10 deletions
|
@ -69,8 +69,8 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
|
||||||
div.text-center(ng-hide="canAddCollaborators")
|
div.text-center(ng-hide="canAddCollaborators")
|
||||||
p You need to upgrade your account to add more collaborators.
|
p You need to upgrade your account to add more collaborators.
|
||||||
p
|
p
|
||||||
a.btn.btn-info(href, ng-click="startFreeTrial()") Start Free Trial
|
a.btn.btn-info(href, ng-click="startFreeTrial('projectMembers')") Start Free Trial
|
||||||
p.small(ng-show="state.startedFreeTrial")
|
p.small(ng-show="startedFreeTrial")
|
||||||
| Please refresh this page after starting your free trial.
|
| Please refresh this page after starting your free trial.
|
||||||
|
|
||||||
.modal-footer
|
.modal-footer
|
||||||
|
|
|
@ -4,9 +4,8 @@ div#trackChanges(ng-show="ui.view == 'track-changes'")
|
||||||
p You need to upgrade your account to use the History feature.
|
p You need to upgrade your account to use the History feature.
|
||||||
p
|
p
|
||||||
a.btn.btn-info(
|
a.btn.btn-info(
|
||||||
href="/user/subscription/plans"
|
href
|
||||||
target="_blank"
|
ng-click="startFreeTrial('track-changes')"
|
||||||
ng-click="startedFreeTrial = true"
|
|
||||||
) Start Free Trial
|
) Start Free Trial
|
||||||
p.small(ng-show="startedFreeTrial") Please refresh the page after starting your free trial.
|
p.small(ng-show="startedFreeTrial") Please refresh the page after starting your free trial.
|
||||||
.message(ng-show="project.owner._id != user.id")
|
.message(ng-show="project.owner._id != user.id")
|
||||||
|
|
|
@ -54,6 +54,13 @@ define [
|
||||||
|
|
||||||
$scope.chat = {}
|
$scope.chat = {}
|
||||||
|
|
||||||
|
$scope.startFreeTrial =
|
||||||
|
|
||||||
|
$scope.startFreeTrial = (source) ->
|
||||||
|
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
||||||
|
window.open("/user/subscription/new?planCode=student_free_trial")
|
||||||
|
$scope.startedFreeTrial = true
|
||||||
|
|
||||||
window._ide = ide
|
window._ide = ide
|
||||||
|
|
||||||
ide.project_id = $scope.project_id = window.project_id
|
ide.project_id = $scope.project_id = window.project_id
|
||||||
|
|
|
@ -51,11 +51,6 @@ define [
|
||||||
$scope.state.inflight = false
|
$scope.state.inflight = false
|
||||||
$scope.state.error = "Sorry, something went wrong :("
|
$scope.state.error = "Sorry, something went wrong :("
|
||||||
|
|
||||||
$scope.startFreeTrial = () ->
|
|
||||||
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', "projectMembers")
|
|
||||||
window.open("/user/subscription/plans")
|
|
||||||
$scope.state.startedFreeTrial = true
|
|
||||||
|
|
||||||
$scope.openMakePublicModal = () ->
|
$scope.openMakePublicModal = () ->
|
||||||
$modal.open {
|
$modal.open {
|
||||||
templateUrl: "makePublicModalTemplate"
|
templateUrl: "makePublicModalTemplate"
|
||||||
|
|
Loading…
Reference in a new issue