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 analytics for usage of the API documentation #10182

Open
teolemon opened this issue Sep 22, 2021 · 0 comments
Open

Add analytics for usage of the API documentation #10182

teolemon opened this issue Sep 22, 2021 · 0 comments
Labels
📚 Documentation Documentation issues improve the project for everyone. matomo P3

Comments

@teolemon
Copy link
Member

teolemon commented Sep 22, 2021

What

Add analytics for API documentation usage

Code pointers

<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://analytics.openfoodfacts.org/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '16']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

Part of

@teolemon teolemon transferred this issue from openfoodfacts/api-documentation Apr 26, 2024
@teolemon teolemon added ✨ Feature Features or enhancements to Open Food Facts server 📚 Documentation Documentation issues improve the project for everyone. matomo P3 labels May 13, 2024
@teolemon teolemon changed the title Add analytics for API documentation usage Add analytics for usage of the API documentation Aug 18, 2024
@teolemon teolemon removed the ✨ Feature Features or enhancements to Open Food Facts server label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 Documentation Documentation issues improve the project for everyone. matomo P3
Projects
Status: To discuss and validate
Status: Todo
Status: No status
Development

No branches or pull requests

1 participant