How to track specific pages with ajax call

Hello,

When I use Google Analytics, I can track each page from an ajax call by using the gtag function as below

$.get("my_website", function(data){
    ......
    ......
    gtag('config', trackingId, {'page_path': '/my_website.html'});
    ......
    ......
}, "html");

I was wondering whether Mamoto has this kind of capability?

Hi,

You can manually track pageviews with custom URLs as explained here:
https://developer.matomo.org/guides/spa-tracking

1 Like