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

Keeping track of Product Views through Anonymous Data #425

Closed
Raj2503 opened this issue Mar 30, 2022 · 5 comments
Closed

Keeping track of Product Views through Anonymous Data #425

Raj2503 opened this issue Mar 30, 2022 · 5 comments

Comments

@Raj2503
Copy link

Raj2503 commented Mar 30, 2022

We can add the functionality to keep track of the views a certain product is getting, thereby providing us with essential information about which products are liked or generally bought by people.

Using this data, we can improve the Open Food Facts AI and create a section for Most Popular Products.

@monsieurtanuki
Copy link
Contributor

As pointed out here, that should probably rather be done on the server side than on the client side.
In addition to that, I believe that the natural order of the results is the product popularity, but maybe I'm wrong.
Maybe a good reason to use Folksonomy, which is already implemented.

@Raj2503
Copy link
Author

Raj2503 commented Apr 1, 2022

@monsieurtanuki thank you for the amazing insight.
It opened me up to a broader perspective of the problem.

Please correct me if I am wrong again, but I would suggest implementing Google Analytics APIs on the server-side for this purpose.
Google Analytics can really simplify the problem according to me.

It can prevent falsifying of data as pointed out here, as it doesn't record multiple Event API calls from the same user for a default Time Frame.

Also, it can track per product views using the Real-Time Reporting API, making it a lot easier to get started with Most Popular Section.

@M123-dev
Copy link
Member

M123-dev commented Apr 1, 2022

When I remember correctly there is already some kind of loose tracking of some metrics, but Open Food Facts has a big focus on privacy therefore I guess Google Analytics isn't in use.

But as monsieurtanuki already pointed out, this repository has nothing to do with tracking metrics but is just a wrapper around the OpenFoodFacts API. You'll probably get a better answer if you either ask in the server repository or even better on Slack

@monsieurtanuki
Copy link
Contributor

Hi @Raj2503! As @M123-dev's just pointed out, that concerns rather the server side. I keep my energy for the flutter/dart side :)

@teolemon
Copy link
Member

teolemon commented Jun 8, 2022

I'm closing, as we indeed already compute a popularity index server side, and have also a https://github.com/openfoodfacts/openfoodfacts-monitoring repository

@teolemon teolemon closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants