How to track Ajax navigation pages (with hashbang URLs)?


#1

Hi, my site uses Ajax navigation and dynamically loaded pages, so Piwik only tracks visits to my homepage. I would like Piwik to be able to track the pages located at the hashbang URLs as well. E.g. Website Hosting - Mysite.com.

The page content is all located in my index.php in the following form:

  • page #1
  • page #2
  • page #3
  • EDIT: I solved this by using setDocumentTitle(), setCustomUrl(), and trackPageView() functions.

    Thanks.


    #2

    Hello,

    I have the same problem…
    Can tou explain me how to do?
    Thanks,


    (Matthieu Aubry) #3

    Please see the documentation for JavaScript tracking at: JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

    Maybe this helps you?