I am extracting data from your API. right now I’m doing a funnel analysis and I’m using cs = ‘864000’ to get the result with “Completed within 10 days” ...
… but what should I use to restrict it to “their first day” instead of “any day”, which seems to be default? Is this possible, as I can’t find anything about this in the documentation, and if not, is there a workaround solution?
Grateful for any help!
/Nils
Best answer by belinda.chiu
Hi @Nils! Taking a look at a previous discussion with the Engineering team, it looks like you should be able to query “their first day” through the REST API.
You should be able to use the same feature using the REST API by specifying the following in the json request:
funnelNewUserType: "SAME_DAY"newOrActive: "new"
Please try the above and let me know if that works for you. I’ll also check in with the Engineering and Documentation team to better understand why this isn’t documented yet.
If your use case allows this, then the workaround would be creating the desired funnel chart in the UI with the “their first day” clause and then querying the chart results using the Existing Chart endpoint. The results returned from this endpoint might be different than the Funnel Analysis endpoint response.
Hi @Nils! Taking a look at a previous discussion with the Engineering team, it looks like you should be able to query “their first day” through the REST API.
You should be able to use the same feature using the REST API by specifying the following in the json request:
funnelNewUserType: "SAME_DAY"newOrActive: "new"
Please try the above and let me know if that works for you. I’ll also check in with the Engineering and Documentation team to better understand why this isn’t documented yet.
Yes Saish, creating a funnel chart then extracting the data from it would work and is always a fallback option. However, that kind of works against what I’m trying to do here, i.e. extracting the data without needing to create a dashboard.
Belinda, I’ve tried using your suggestion of funnelNewUserType: "SAME_DAY" and newOrActive: "new like this:
this gives me:
which still is the same result as “any day” in the dashboard:
I’ve tried multiple different settings, spellings, etc. without any success. It still seems like I can’t get “their first day” to work.
Have missed something with the JSON request? If you want I can privately send you the dashboard link and copy of the Python code used.
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.