diff --git a/services/web/public/src/ide/pdf/controllers/PdfController.js b/services/web/public/src/ide/pdf/controllers/PdfController.js index 260125f85b..e5bbffa9bd 100644 --- a/services/web/public/src/ide/pdf/controllers/PdfController.js +++ b/services/web/public/src/ide/pdf/controllers/PdfController.js @@ -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