WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] Feature Request: Intern Search Tracking (7 posts)

  1. Subhash.at
    Member
    Posted 1 year ago #

    The tracking of intern searches requests another javascript code for Piwik. Especially if you would like to see searches that had no results which is a new feature of Piwik. Please include this function in your plugin!

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    If the search term is sent via URL parameter, there is no additional javascript code required. See http://piwik.org/docs/site-search/#toc-enable-site-search-tracking-for-your-website

    WordPress' default search query parameter is "s".

    Using the site search javascript function (e.g. to support rewritten URLs) will be added in a future version of WP-Piwik.

  3. Subhash.at
    Member
    Posted 1 year ago #

    This is not correct.
    I was referring to http://piwik.org/docs/javascript-tracking/#toc-tracking-internal-search-keywords-categories-and-no-result-search-keywords . It reads that on "normal" pages you would use piwikTracker.trackPageView(). On search result page, one has to call instead piwikTracker.trackSiteSearch(keyword, category, searchCount). Without this tracking of intern searches which had no result is not possible. (I add the code manually to my WP-installations because your plugin seems to miss that feature.)

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    You need to use piwikTracker.trackSiteSearch if you like to track the search results manually:

    By default, Piwik can read URL parameters that will contain the search keyword. However, you can also record the site search keyword manually using the Javascript function trackSiteSearch(…)

    WordPress' default search works with the URL parameter "s" (e.g. myblog.tld/?s=keyword), which is tracked by default. Works fine here, of course without sorting by the search count.

    I'll add piwikTracker.trackSiteSearch in a future version to track keywords in rewritten URLs and to track the search count which allows the seperation you like to get. But the Intern Search Tracking itself works by now.

  5. Subhash.at
    Member
    Posted 1 year ago #

    Thanks for you're reply. I know that search tracking is possible with piwikTracker.trackPageView(). But the very interesting new feature to see what people searched for on your website and did not find is not possible.

  6. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Work in progress here.

  7. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Committed to the repository. New feature in 0.9.8.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags