From 0fe129f3f5c6def99d28b10edc9f2fbfbce7eac2 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Thu, 6 Jun 2019 10:32:54 -0500 Subject: [PATCH] Merge pull request #1812 from overleaf/jel-trial-impression-history Send history trial impression event GitOrigin-RevId: 7256738eda99bae2b2be11459e5eba164afdc2f4 --- services/web/public/src/ide/history/HistoryV2Manager.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/web/public/src/ide/history/HistoryV2Manager.js b/services/web/public/src/ide/history/HistoryV2Manager.js index deda393992..28567e7ad3 100644 --- a/services/web/public/src/ide/history/HistoryV2Manager.js +++ b/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 } }