You can set up Mouseflow to record pages based on the query-string, URL fragment, or other parameters with some additional code to your tracking snippet. Just add the relevant code snippet to the top of your tracking snippet just after the opening <script> tag.

If you would like to record users based on the query-string

var mouseflowPath = window.location.pathname + window.location.search;

You can also enable this in the application by heading to the apps and integrations list and enabling our integration titled "Add queryStrings to path".

If you would like to record users based on the hash

var mouseflowPath = window.location.pathname + window.location.hash;

This can also be enabled in the application by heading to the apps and integrations list, and enabling our integration titled "Add hashes (#) to path".


If you would like to record users based on either or both

var mouseflowPath = window.location.pathname + window.location.search + window.location.hash;

‚Äč

Once this code is added, you will be able to set up the "pages to record" rules to include the query-string and/or hash fragment portions of the URLs.

Did this answer your question?