#beneordio_subscription-analytics
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1263148442117607515
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- beneordio_best-practices, 4 hours ago, 18 messages
Good question. Do you have an example ID of a subscription with a trial that you have set up?
And is this a running total type of thing? Like how many trial days have there been across multiple subscriptions, possibly including already cancelled ones?
yes a running total that may change if another trial starts
This one for example: cus_QKu0hQGgd4o3bg
7 days trial initially but then we added more trial days
Gotcha. Thanks for the ID, looking in to that and will get back to you on what may be good to listen to
And will you ever give a trial to a user that has already gotten out of a trial period? As in will someone go from free trial to paid to free trial?
that would be unlikely but could technically happen
what will happen for sure is trial period -> no subscription -> another trial period -> regular subscription
Gotcha, and does that initial trial period involve a different subscription object?
It looks like our subscriptions only have properties for trial_start and trial_end which only reflect the most recent trial settings. So I think you will need to have your own logic to count this as the user is provisioned trials.
You can store it as a running count via metadata on the customer and/or subscriptions if that makes it easier to track and re-calculate
Sorry for the late reply and thanks for your answer. How would i program my own logic? I am no software developer and could i log the data as a meta field on my customer list?
Gotcha, I see that you are making subscription updates both from the dashboard and via the API. So I think the overall strategy would be to listen to webhook events, have your server check the trial related info when it gets subscription related events, and then log a count of trial days either on your own server or on a stripe object via metadata. https://docs.stripe.com/api/metadata
Does that make sense and sound feasible? I can go in to more detail on events and subscription fields, but wanted to make sure that was feasible before getting too carried away
beneordio_subscription-analytics
How long do you think a software engineer would require to set this whole thing up?
@limber trellis we can't really assess that, it depends on their experience/skill
how long would it take you to do it roughly?
a few days I'd say
Alright thanks for the estimate ๐ I think we can close this thread