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

Track clicks on download links #92

Open
Tracked by #91
alycejenni opened this issue Jan 11, 2023 · 1 comment
Open
Tracked by #91

Track clicks on download links #92

alycejenni opened this issue Jan 11, 2023 · 1 comment

Comments

@alycejenni
Copy link
Member

alycejenni commented Jan 11, 2023

Track clicks on the links generated by the "server" classes in the new download model.

@alycejenni alycejenni changed the title Are we tracking the number of downloads of that direct link gets? (this will be a separate task) Track clicks on download links Jan 11, 2023
@jrdh
Copy link
Member

jrdh commented Jan 11, 2023

First thought on how to do this: write a route in CKAN that receives the download requests, update some stats database with the download request, use the NGINX x-accel header to get NGINX to serve the actual file.
Main issue with this is that whichever NGINX needs server gets the header from CKAN needs to be able to serve the file, i.e. needs access to the disk it's stored on. Maybe we could start using object storage in Valentine to share these files?

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

No branches or pull requests

2 participants