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

Add a Matomo event when the app scans a product that is marked "obsolete" #5005

Closed
stephanegigandet opened this issue Jan 23, 2024 · 2 comments · Fixed by #5042
Closed

Add a Matomo event when the app scans a product that is marked "obsolete" #5005

stephanegigandet opened this issue Jan 23, 2024 · 2 comments · Fixed by #5042
Labels
📈 Analytics We use Sentry and Matomo, with an opt-in system 📈 Matomo 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…

Comments

@stephanegigandet
Copy link
Contributor

We are adding ways for producers to mark obsolete the products that have their brand but are not sent to the producers platform. An issue is that there may be lots of false positives. We want to make sure that products that are scanned regularly can be unobsoleted.

As a first step to quantify the issue / opportunity, it would be great to add an even in Matomo when a user scans a product marked as obsolete.

@teolemon teolemon added 📈 Analytics We use Sentry and Matomo, with an opt-in system 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion… 📈 Matomo labels Jan 24, 2024
@monsieurtanuki
Copy link
Contributor

@stephanegigandet How do we detect if a product is marked as obsolete? Is there a specific boolean field?
I couldn't find one in https://fr.openfoodfacts.org/api/v3/product/3760296730100?fields=all

@stephanegigandet
Copy link
Contributor Author

stephanegigandet commented Feb 5, 2024

@monsieurtanuki it's the obsolete field: https://fr.openfoodfacts.org/api/v3/produit/8076809517881/sauce-pesto-avec-fromage-ricotta-et-noix-190g-barilla?fields=obsolete
It's present only if the product is obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📈 Analytics We use Sentry and Matomo, with an opt-in system 📈 Matomo 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…
Development

Successfully merging a pull request may close this issue.

3 participants