Hello, I have an engineering team that built an app that allows users to create profiles. I want to show my users analytics, i.e., how many visitors came to their profiles. What’s the best way of doing this using amplitude? Thanks!
Hey rayq Yup. Scalability is indeed an issue with using Dashboard REST API.
I had tried this approach when we were trying to pull some chart data into another internal application, but were hit with the rate limits. Had to go through a similar exercise to calculate the query cost for our internal users.
Another way would be to have access to raw event data and then querying it off that. We use Snowflake for this purpose by running custom queries and then sharing the dataset at scale within other business systems.
You can also create public links to Amplitude charts and try embedding them in your application if that works, but this may bring alongside some potential security and access control issues.
Hey rayq
Really interesting use case!So as per my understanding you want to use Amplitude to generate analytics about the user profile feature usage and surface these numbers within the app itself, correct?
I would recommend using the https://developers.amplitude.com/docs/dashboard-rest-api to extract the data points you are interested in after you have instrumented usage events on your profiles feature.
There are quite a few endpoints in the Dashboard REST API which you can leverage to query existing saved charts or build an event segmentation chart on the fly programmatically.
Once you are able to do this, you can use the raw data points and visualize it in your app using some charting libraries or whatever fits your use case.
Let me know if I have interpreted your use case correctly. Hope this helps!
@Platform Specialists, are there any customers out there who have iframed amplitude charts to achieve a similar end result?
Really interesting use case! So as per my understanding you want to use Amplitude to generate analytics about the user profile feature usage and surface these numbers within the app itself, correct?
Thanks for the reply. I did look at the Dashboard REST API but it seems like the rate limits make it not scalable.
Concurrent Limit: You can only run up to 5 concurrent requests across all of our REST API endpoints (including cohort download).
Just adding on here, I did a bit more of a deepdive.
cost = (# of days) * (# of conditions) * (cost for the query type)
Rate Limit: You can run up to 36,000 cost per hour.
Let’s say I want to aggregate the last 60 days of ‘profile view’ events for a given profile (i.e. 1 condition)
cost = 60*1 = 60
Therefore, 36000/60 = 600, meaning I can only do this query 600 times an hour. I already have 500 users. Granted, not all of them will query at the same time, but I do anticipate having over ten thousands users at some point.
Any other options?
Hi rayq!
I’m Nadia from the Platform Team. Happy to step in! That is a good question and a very interesting use case indeed! Saish Redkar is correct here. The first option would be using the Dashboard REST API but I can definitely understand that it’s not scalable in this case.The two other options mentioned: querying raw data and embedding public links are the alternatives.
That being said, your feedback is very valuable and I have forwarded this to our product team on your behalf rayq!
Hello! In React-Native mobile project we have error: Amplitude Logger [Error]: Failed to set cookie for key: AMP_TEST. Error: Cannot set property 'cookie' of undefined Error Component Stack: ``` The package version is "@amplitude/analytics-react-native": "1.5.1", Steps to Reproduce: * Initialize Amplitude with our API key…
We implemented first party tracking using the basic JS SDK on the browser and pointing the payload to our servers like this: amplitude.init(AMPLITUDE_API_KEY, { serverUrl: serverUrl, autocapture: { attribution: { excludeReferrers: [/domain1\.com$/, /domain2\.com$/], }, formInteractions: false, fileDownloads: false, }, });…
My Android app is primarily a background app. Does Amplitude track events for such an app? Please let me know.
here is the referance graph: https://app.amplitude.com/analytics/demo/chart/new/363tk5og In this graph, retention is currently being calculated based on the next day, but I want to analyze it based on the previous day instead. Example: For July 27, we should compare retention against July 26, not July 28. * So for 1-day…
Hi everybody! I need your help with a client request: my client is used to analyze landing pages performance with the standard report from GA4 and I need to create something similar in Amplitude. What I already have: * session entries grouped by page URL * purchase event calculated as session totals grouped by page URL and…