mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Merge pull request #4186 from overleaf/ab-expired-sub-plan-code-prop
Keep subscription plan code user property when a subscription expires GitOrigin-RevId: 195bfa440dc3fb020f4cbefe44f87bc975aade70
This commit is contained in:
committed by
Copybot
parent
669bec323c
commit
bb760a3ee2
@@ -78,7 +78,7 @@ function _sendSubscriptionExpiredEvent(eventData) {
|
||||
quantity,
|
||||
is_trial: isTrial,
|
||||
})
|
||||
AnalyticsManager.setUserProperty(userId, 'subscription-plan-code', null)
|
||||
AnalyticsManager.setUserProperty(userId, 'subscription-plan-code', planCode)
|
||||
AnalyticsManager.setUserProperty(userId, 'subscription-state', state)
|
||||
AnalyticsManager.setUserProperty(userId, 'subscription-is-trial', isTrial)
|
||||
}
|
||||
|
||||
@@ -188,6 +188,12 @@ describe('RecurlyEventHandler', function () {
|
||||
is_trial: true,
|
||||
}
|
||||
)
|
||||
sinon.assert.calledWith(
|
||||
this.AnalyticsManager.setUserProperty,
|
||||
this.userId,
|
||||
'subscription-plan-code',
|
||||
this.planCode
|
||||
)
|
||||
sinon.assert.calledWith(
|
||||
this.AnalyticsManager.setUserProperty,
|
||||
this.userId,
|
||||
|
||||
Reference in New Issue
Block a user