Просмотр исходного кода

Merge pull request #1812 from overleaf/jel-trial-impression-history

Send history trial impression event

GitOrigin-RevId: 7256738eda99bae2b2be11459e5eba164afdc2f4
Jessica Lawshe 7 лет назад
Родитель
Сommit
0fe129f3f5
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      services/web/public/src/ide/history/HistoryV2Manager.js

+ 9 - 0
services/web/public/src/ide/history/HistoryV2Manager.js

@@ -869,6 +869,15 @@ define([
           ) {
           ) {
             cutOffIndex = i || 1 // Make sure that we show at least one entry (to allow labelling).
             cutOffIndex = i || 1 // Make sure that we show at least one entry (to allow labelling).
             this.$scope.history.freeHistoryLimitHit = true
             this.$scope.history.freeHistoryLimitHit = true
+            if (this.$scope.project.owner._id === this.$scope.user.id) {
+              ga(
+                'send',
+                'event',
+                'subscription-funnel',
+                'editor-click-feature',
+                'history'
+              )
+            }
             break
             break
           }
           }
         }
         }