Replies: 1 comment 3 replies
-
In the interim, I would also be happy with a reasonable workaround for the cancelled event. My only idea so far is, whenever I open the payments page for the user, I will poll the user's |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
CurrentIy, the
onPaid
event is fired both when a user signs up, and when a user restores an existing subscription. The docs say:I believe there should be two different events for this. My use-case: I want to send analytics data on both these events, and currently the events triggered by logins skew the signed up count. So for example, if a user pays once, then reinstalls the extension 10 times and logs in each time, I will get 11 "paid" analytics events. I know it's an extreme example, but still important. (actually, I don't really care about the login event, but I do care about the "paid" event only firing when the user actually pays)
Related, there is no way to detect when the user cancels the subscription. I know the plan isn't canceled straight away, but we should know when the user makes the decision to not pay for our product anymore. I spent some time today reading the ExtPay code and understanding how these event handlers work, and I believe it would be pretty easy to add this event. Just need to fire a message when the user clicks the "cancel" button in the ExtPay popup. Currently my only alternative is to somehow poll the user in my background script and check the
subscriptionCancelAt
field.Tracking these events correctly is very important, since all of us developers here want to monetize our products. I am building analytics around user conversion rate and cancellations, and the second one is a blind spot.
PS: I would be happy to contribute! I have a reasonable understanding of how the open source part works. However, in order to contribute these events, we also need to change your server side, so I am not able to help :)
Beta Was this translation helpful? Give feedback.
All reactions