laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

As an admin I want to see what website features are used #1619

Open niiroobiro opened 11 months ago

niiroobiro commented 11 months ago

Introduction

Understanding user behavior is crucial for optimizing user experience and making informed decisions. The big question here is : What do we want to see on analytics with regards to our users? What behavior are we looking out for to guide how we build our product?

User insights that we can explore

User journeys:

We should utilize Google Analytics' Behavior Flow reports to visualize the paths users take through your site, identifying entry and exit points. This will enable us to understand what happens when a user makes a search. Using behavior flow reports might help us visualize the path users take through our site and also identify potential bottlenecks in the user journey.

Feature Utilization:

Analyze how features are utilized to gauge their effectiveness. We should start by tracking the following features:

Language and Accessibility:

Determine how many users read in different languages and identify screen readers in use. Leverage Google Analytics tools to track the success of user searches in various languages, ensuring content accessibility.

Tracking time spent on pages:

Examine the time users spend on different pages, differentiating between search, document and listing pages. Shorter times on search pages may indicate effective searches, while longer times on document pages suggest deeper engagement. Analyze the most visited pages on your site.

Document Types:

Analyze the types of documents users interact with, tailoring content to meet user preferences.

Delivered

longhotsummer commented 8 months ago

I'd like to use this opportunity to test feature tracking in Matomo.

I think we should start with:

The first two already work in GA, although the reports are difficult to query and work with. The third we have not been able to implement in GA.

Let's implement/configure all three for Matomo.

Additionally, use this issue to:

  1. remove plausible.io analytics
  2. implement matomo analytics for africanlii.org
nickmwangemi commented 8 months ago

I'd like to use this opportunity to test feature tracking in Matomo.

I think we should start with:

  • tracking shares - ie. external clicks to the share URLs for whatsapp, twitter, linkedin etc.
  • search - what users search for
  • language - what language the user is browsing the site in

The first two already work in GA, although the reports are difficult to query and work with. The third we have not been able to implement in GA.

Let's implement/configure all three for Matomo.

Additionally, use this issue to:

  1. remove plausible.io analytics
  2. implement matomo analytics for africanlii.org

Resolved by #1712

longhotsummer commented 8 months ago

For search, we do get the first pageview, but not subsequent searches because we update the URL dynamically.

See https://developer.matomo.org/guides/spa-tracking - we want to do something like this when the search changes (first checking that _pq is there):

_paq.push(['trackPageView']);
longhotsummer commented 8 months ago

For site language, we want to push a custom dimension: https://matomo.org/guide/reporting-tools/custom-dimensions/

longhotsummer commented 7 months ago

@Sandravaphilips FYI, matomo can now be configured through the admin area, although you shouldn't have to worry too much about that.

longhotsummer commented 6 months ago

Something that would be very valuable to see is how many people click on citations link that we add, in particular to PDFs.