Skip Navigation

[Resolved] Tracking visitor filtering and searching

This support ticket is created 2 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by davidW-32 2 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2485087

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

#2485693

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

#2485751

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!