Count page views for simulated search results

I’ll start explaining the “simulated search” part. On my site, some pages are created from a page template and the content is retrived using an internal search. The URL contains a classic search parameter structure (?q=…) and Piwik sees these URLs as a search result and therefore doesn’t count page views for those visits. It’d be as easy as removing the search keyword from the site’s Piwik settings but there’s another problem, other (real) searches use this parameter so I can’t just avoid it completly. Is there any way to remove keyword parameters for only some specific paths (these pages have different URLs than the site’s actual search engine results)?

Hi @mperezcastell,

Welcome to our community!

You can remove the keyword “q” and then use this JS method each time a search is performed: site-search. For example by implementing it via tag manager.