Explorar o código

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

Send history trial impression event

GitOrigin-RevId: 7256738eda99bae2b2be11459e5eba164afdc2f4
Jessica Lawshe %!s(int64=7) %!d(string=hai) anos
pai
achega
0fe129f3f5
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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).
             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
           }
         }