Merge pull request #1818 from overleaf/jel-trial-impression-timeout

Send timeout trial impression event

GitOrigin-RevId: 6931c3063c094cff843ffa7fac5a513af8f6b8f5
This commit is contained in:
Jessica Lawshe 2019-06-06 10:33:13 -05:00 committed by sharelatex
parent f0e39f7a86
commit 81c3f1919e

View file

@ -407,6 +407,16 @@ define([
$scope.pdf.view = 'errors'
$scope.pdf.timedout = true
fetchLogs(fileByPath, { pdfDownloadDomain })
if (
!$scope.hasPremiumCompile &&
ide.$scope.project.owner._id === ide.$scope.user.id
) {
event_tracking.send(
'subscription-funnel',
'editor-click-feature',
'compile-timeout'
)
}
} else if (response.status === 'terminated') {
$scope.pdf.view = 'errors'
$scope.pdf.compileTerminated = true