matomo-org / developer-documentation

Matomo Developer Website
https://developer.matomo.org
Other
54 stars 86 forks source link

Clarification Needed: Differentiating Event URL, Action URL, and Page URL #780

Open Chardonneaur opened 8 months ago

Chardonneaur commented 8 months ago

Hi team,

Seeking clarification on the distinctions between "Event URL," "Action URL," and "Page URL" within Matomo. The current documentation does not clearly differentiate these terms, leading to confusion about their appropriate use in analytics. A concise, detailed guide explaining each term's unique aspects and best practices for their use in filtering/segmentation would greatly benefit users for more effective data analysis. Please have a look at: https://forum.matomo.org/t/difference-between-action-url-and-page-url/40622/30 if it can help.

araichyk commented 8 months ago

Hi @Chardonneaur ,

Thank you for your question and for bringing this to our attention.

To better understand these terms, I conducted an experiment where I set up a test website with the following components:

I then created a fresh Matomo instance to track the website and performed the following interactions:

Here's the Visits Log:

image

Next, I set up Custom Reports using the different URL types as the dimension and measuring "hits" as the metric. The results were as follows:

Page URL:

Event URL:

Download URL:

Action URL:

Here are the screenshots of those four Custom Reports:

image

image

image

image

Note that:

Based on the findings from the experiment and the information provided, I would define the different URL types as follows:

This relationship is defined in the code around line 25 of core/Tracker/Action.php. There you can see all the different "types" that an "Action" can be. Some of those types are PAGE_URL, DOWNLOAD, and EVENT, which are the 3 event types that I tested above.

In terms of their uses for segmentation and filtering:

We can add formal documentation for this once we're satisfied with the URL definitions and their uses.

Feel free to reach out if you have any further questions or need additional assistance.

Chardonneaur commented 8 months ago

Hi @araichyk this is exactly what we were looking for, for a very long time, is it possible to write a formal documentation with exactly the content you just wrote? Thank you,