Uploaded image for project: 'Page Subscription'
  1. Page Subscription
  2. PAGESUB-27

Calculate and send page subscription and like statistics for external storage and reports

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.LATER
    • None
    • None
    • 2 - Long term
    • 3 - Complex

      The goal is to make reports in Matomo, with page subscription statistics computed by Ametys each night.

      Ametys would only gather, compute and send stats to Matomo.

      Matomo would do the reporting on his side.

      Here is an example of http request to send to matomo (one for each subscribed page):

       

      // GET https://your-matomo/matomo.php
      ?idsite=1
      &rec=1
      &apiv=1
      &e_c=engagement
      &e_a=subscription_count
      &e_n=Page%20AboutUs
      &e_v=1
      &cdt=2025-04-24%2000:00:00
      &token_auth=your_token

       

       

      Same for like:

      // GET https://your-matomo/matomo.php ?idsite=1 &rec=1 &apiv=1 &e_c=engagement &e_a=subscription_count &e_n=Page%20AboutUs &e_v=1 &cdt=2025-04-24%2000:00:00 &token_auth=your_token

      Note that Matomo offers javascript and java SDK : https://developer.matomo.org/api-reference/tracking-java

            Unassigned Unassigned
            gauthier Gauthier Ubersfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: