Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: Document analytics data export capabilities #248

Open
ashrafchowdury opened this issue Jan 11, 2024 · 1 comment
Open

✨ feat: Document analytics data export capabilities #248

ashrafchowdury opened this issue Jan 11, 2024 · 1 comment

Comments

@ashrafchowdury
Copy link
Contributor

Description

I propose integrating a robust document analytics data export functionality within the system so that users can easily export their data. This feature aims to enhance the platform's capabilities by allowing users to export detailed analytics data for further analysis and reporting.

Notes:

  1. This feature is available on Roadmap Export analytics data #74 and no one is working on it currently.
  2. As you mentioned on that issue of exporting data in CSV format, I'm taking that.
  3. Below I added a short video about my experiments with this feature, you can check it out. How was that?

Technical issues:

I have created a custom hook to abstract all the necessary data from different components by hooks, but the problem is we don't have any useEffect hook or any function that will run when data loads. So there are two possible solutions in my mind:

  1. Use the useEffect hook in every component to send the analytics data on that custom hook.
  2. Call all the necessary swr hooks, like use-document, use-stats on that custom hook to fetch data on the spot and export the data.

I want to know your opinion on which option is better or share a better suggestion.

Feature Preview

papermark_analytics_data_export_feature.-.Made.with.Clipchamp.mp4
@mfts
Copy link
Owner

mfts commented Mar 17, 2024

Thanks for putting in the effort @ashrafchowdury. I like your approach.

One way, I was thinking about it is you can trigger a function when the user presses the button which fetches the data from tinybird (probably via a new tinybird pipeline) and downloads it for the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants