Mixpanel Community Icon

Reporting on Website Search Activity: Top 10 Search Terms Guide

·
·

How is everyone reporting on website search activity? For example, I want to create a report that captures the search terms used on a website. To start, I set up an Insight report to capture the search results page URL, then break that down by URL, but that is not very clean. The search results page includes the term used, as follows: https://sample.com/?srch=searchTermHere The search form is as follows:

<form action="https://sample.com/workshop/" role="search" method="GET" class="wpc-filter-search-form">
    <div class="wpc-search-field-wrapper wpc-search-field-wrapper-83692s"> <span class="wpc-search-icon"></span> <input
    type="text" class="wpc-search-field" placeholder="Find a Workshop" value="" name="srch"> <span
    class="wpc-search-clear-icon-wrapper"> <a class="wpc-search-clear-icon" href="https://sample.com/workshop/"
    title="Clear search">×</a> </span></div>
</form>

How is everyone reporting on Search activity?

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    Create a custom property using regex_extract to pull just the search term out of the url. And then use that for the breakdown.

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    Otherwise create a specific tracked event for “search_submitted” or something like that with the term as a specific property

  • Avatar of Jono Y.
    Jono Y.
    ·
    ·

    Thank you Andrew S.! As you were typing that, I was playing around in Mixpanel. We are using Mixpanel EZ Track, and this is how I found a good solution: Create a new Insight Report, then…

    1. 1.

      For Event, choose User Entered Text

    2. 2.

      Filter the Event by URL

    3. 3.

      Break down the Event by CONTENT - User Content

    The result is pretty great - best viewed as a table or bar chart.

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    Yeah. Tables will let you see more on a dashboard vs bars (bc of the scroll). But I do like the visual of the bars.

  • Avatar of Jono Y.
    Jono Y.
    ·
    ·

    One interesting discovery is that the data is not a 1:1 match between the two reports: