Struggling to make my first Matomo Custom URL work, need help

Matomo works generally fine for our website but I am struggling with setting up my first custom URL.

I have followed instructions here: https://matomo.org/faq/how-to/how-do-i-set-a-custom-url-using-the-matomo-javascript-tracker/

A live poc of my first custom URL is available here in production: https://emplois.inclusion.beta.gouv.fr/stats/poc_matomo_custom_url/

If you look at the HTML source code of the live page, you can see this:

_paq.push(['setCustomUrl', location.origin + '/matomo-custom-urls-actually-do-work.html']);
_paq.push(['trackPageView']);

In a javascript console you can check that location.origin + '/matomo-custom-urls-actually-do-work.html' evaluates to 'https://emplois.inclusion.beta.gouv.fr/matomo-custom-urls-actually-do-work.html' so in theory this should work right?

But even after several hours, when I go to our Matomo backoffice and check the list of pages, I cannot see the expected /matomo-custom-urls-actually-do-work.html anywhere.

Any idea what I could try next to troobleshoot what I am doing wrong here? :pray:

Your tracking seems OK:

https://stats.data.gouv.fr/piwik.php?action_name=Statistiques%20et%20pilotage%20-%20Les%20emplois%20de%20l%27inclusion&idsite=117&rec=1&r=184202&h=14&m=56&s=13&url=https%3A%2F%2Femplois.inclusion.beta.gouv.fr%2Fmatomo-custom-urls-actually-do-work.html&_id=277daeeba364bdec&_idn=0&_refts=0&send_image=0&cookie=1&res=1920x1080&cvar=%7B%221%22%3A%5B%22is_authenticated%22%2C%22no%22%5D%2C%222%22%3A%5B%22account_type%22%2C%22anonymous%22%5D%2C%223%22%3A%5B%22account_sub_type%22%2C%22anonymous%22%5D%7D&pv_id=y9VsWv&pf_net=122&pf_srv=10&pf_tfr=111&pf_dm1=10815

We can see the custom URL: https://emplois.inclusion.beta.gouv.fr/matomo-custom-urls-actually-do-work.html
What do you see in the visits log?

Be careful, for most of the reports (eg. list of viewed pages), the data need time to be available because Matomo must archive (aggregate) them (depending on your configuration).

Thanks for your answer. I am not sure we even have access to the visits log, here is what I see in the backoffice:

image
(As a new user I was forbidden from adding more than one screenshot here).

We are using a shared Matomo instance (stats.data.gouv.fr) which we only have a limited access to, no admin right. This might or might not be a part of the problem. Anything else I can try?

In the medium term we may consider hosting our own Matomo instance, do you think this would help with setting up custom URL?

Latest data usually refreshes within an hour, I have waited for much more than that already so I don’t think it is an issue about data refresh delay.

I stand corrected, it now works! Apparently it just took much more than the usual hour to refresh. This is awesome! Thanks for your help @heurteph-ei and have a lovely day.

image