Hi,
I have a site search results page that is shown if a search finds more than one match. If the search finds JUST one match then the results page is skipped and the users is sent directly to a detail page.
This seems to be unsuitable for using the javascript "trackSiteSearch" mechanism.
My code is Java/JSP. Would I be correct in thinking that the Piwik Java client might be the best way forward as the search is processed in just one piece of java code ? If so what do I need to be aware of in terms of duplicate Piwik data as the jsp footer for all my pages includes the standard "trackPageView" javascript ? For example if my search returns 10 results, the java client api would record a site search with Piwik then the results would be rendered on the jsp page which includes a "trackPageView" in the footer.
Any advice welcome.
Thank you.
I have a site search results page that is shown if a search finds more than one match. If the search finds JUST one match then the results page is skipped and the users is sent directly to a detail page.
This seems to be unsuitable for using the javascript "trackSiteSearch" mechanism.
My code is Java/JSP. Would I be correct in thinking that the Piwik Java client might be the best way forward as the search is processed in just one piece of java code ? If so what do I need to be aware of in terms of duplicate Piwik data as the jsp footer for all my pages includes the standard "trackPageView" javascript ? For example if my search returns 10 results, the java client api would record a site search with Piwik then the results would be rendered on the jsp page which includes a "trackPageView" in the footer.
Any advice welcome.
Thank you.