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

HACKATHON: add in portal analytics code #2

Merged
merged 27 commits into from
Oct 27, 2023
Merged

HACKATHON: add in portal analytics code #2

merged 27 commits into from
Oct 27, 2023

Conversation

thomasyu888
Copy link
Member

@thomasyu888 thomasyu888 commented Oct 19, 2023

Create {portal}_downloads tables which joins the portal tables with the nodesnapshot (if necessary) and file download records tables (de duplicated by user_id, file_handle_id, and record_date) to have the closest estimate of download statistics.

The metrics gathered

  • Total files per portal
  • Total download counts since 2022-01-01
  • Total download counts in September
  • Total Unique users that downloaded the data since 2022-01-01

Note: do review the transforms/ SQL first as it contains tables that are used in the analytics script.

@thomasyu888 thomasyu888 changed the title Add in hackathon sql HACKATHON: add in portal analytics code Oct 20, 2023
@thomasyu888 thomasyu888 merged commit 7c7eff2 into main Oct 27, 2023
@thomasyu888 thomasyu888 deleted the hackathon branch October 27, 2023 23:13
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

Successfully merging this pull request may close these issues.

1 participant