Tell us what you are trying to do?
We would like to track the visitor behaviour on our website when visitors are using the filters and search feature on a Toolset View on page hidden link. If visitors use the filters or search, the URL paramters are added to the URL, but it is not tracked via our tracking tool matomo.
Is there any documentation that you are following?
No
Is there a similar example that we can see?
If we open the filtered/searched page directly by entering the URL with all URL parameters, this is tracked by matomo; e.g.:
hidden link
But if a visitor uses the filters and searches on the page hidden link, the URL paramters are added to the URL, but it is not tracked via our tracking tool matomo.
What is the link to your site?
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
If the page tracking is working when you visit the page directly, but not when the search results are updated without page reload (i.e. through AJAX), it means that Matomo's tracking is set to initiate at the time of page reload/refresh.
A quick solution is to change the view's search settings to use the page reload and not the AJAX.
For making Matomo's tracking work with the AJAX calls too, you can consult their official support and documentation to see if it offers any re-initialization script function which triggers the tracking after a certain AJAX event has been completed.
Note: Toolset views offer a number of AJAX events, as explained in this support thread:
https://toolset.com/forums/topic/is-there-a-list-of-frontent-events/
regards,
Waqar
Hi Waqar.
thanks a lot for your quick solution to change the view's search settings. We would prefer to use AJAX of course, so we will work with the Matomo support team based on your input. If need be, we may open a new support ticket. Thanks again!