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

Page View Counter #5

Open
chand1012 opened this issue Jan 16, 2023 · 2 comments
Open

Page View Counter #5

chand1012 opened this issue Jan 16, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@chand1012
Copy link
Member

We should have some form of view counter for each image. I like the way that my friends over at ABG handled their view counter, using Google Analytics. I know from a privacy perspective its not the best, but its the easiest to implement and I don't want to deal with self-hosting a bunch of crap. If people don't like it they can use privacy extensions. This would also kill two birds with one stone as we need analytics anyways.

@chand1012 chand1012 added the enhancement New feature or request label Jan 16, 2023
@chand1012
Copy link
Member Author

The TLDR on how their page viewer works is that they have normal analytics on all their pages that store the views on each page by the path. Then they have a NextJS function that hits the Google Analytics API with their private API key that gets the view count and returns it to the unauthorized user. I think this is the easiest method without either selfhosting our own analytics solution or attempting to create our own analytics system via supabase.

@chand1012 chand1012 added this to the V1 milestone Jan 20, 2023
@chand1012
Copy link
Member Author

We may have to use a Supabase function instead of a NextJS function but the concept stays the same.

@chand1012 chand1012 modified the milestones: V1, V2 Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant