PT

U.Porto IT

Services

Services List

  1. Web Apps
Web Access Statistics

Content for teachers and staff

The Matomo (Piwik) platform allows you to make a statistical analysis of the website accesses in real time. It offers a detailed report that includes information about the search engines used and the respective keywords, as well as the geographical location of guests.

Registering in the Matomo platform

  1. Go to https://piwik.up.pt.
  2. Log in using the credentials of the Information System.
  3. After logging in successfully, send an email to helpdesk@uporto.pt with a request to use the service. Please indicate your username, the name of the site you wish to monitor and a declaration of responsibility.

Monitoring a site

To monitor a site, you should include the following code in all your pages and substitute the number 999999 by the SiteId that was provided to you.

<!-- Matomo -->
<script type=”text/javascript”>
   var _paq = window._paq || [];
   /* tracker methods like “setCustomDimension” should be called before “trackPageView” */
   _paq.push([‘trackPageView’]);
   _paq.push([‘enableLinkTracking’]);
   (function() {
     var u=”https://piwik.up.pt/”;
     _paq.push([‘setTrackUrl’, u+’matomo.php’]);
     _paq.push([‘setSiteId’, ‘999999’]);
     var d=document, g=d.createElement(‘script’), s=d.getElementsByTagName(‘script’)[0];
     g.type=’text/javascript’; g.async=true; g.defer=true; g.src=u+’matomo.js’; s.parentNode.insertBefore(g,s);
   })(); </script> <!-- End Matomo Code -->

In case you do not use JavaScript, you can use image tracking.

<!-- Matomo Image Tracker -->
<img src=”https://piwik.up.pt/matomo.php?idsite=999999&rec=1” style=”border:0” alt=”” />
<!-- End Matomo -->

More information:

Unit
Systems Administration and Operations

Last update: November 26, 2019