#beneordio_subscription-analytics

1 messages ยท Page 1 of 1 (latest)

patent prawnBOT
#

๐Ÿ‘‹ 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.

nova vaultBOT
#

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.

woeful solar
#

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?

limber trellis
#

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

woeful solar
#

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?

limber trellis
#

that would be unlikely but could technically happen

#

what will happen for sure is trial period -> no subscription -> another trial period -> regular subscription

woeful solar
#

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

limber trellis
#

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?

woeful solar
#

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

patent prawnBOT
patent thunder
#

beneordio_subscription-analytics

limber trellis
#

How long do you think a software engineer would require to set this whole thing up?

patent thunder
#

@limber trellis we can't really assess that, it depends on their experience/skill

limber trellis
#

how long would it take you to do it roughly?

patent thunder
#

a few days I'd say

limber trellis
#

Alright thanks for the estimate ๐Ÿ™‚ I think we can close this thread