Skip to content

Add search analytics for Matomo #16

@ngulden

Description

@ngulden

Describe the problem

I use typesense-docsearch.js as search interface to a product documentation site at https://docs.software-univention.de.

I like the interface and how quickly I could get it productive.

I use Matomo for website analytics. To further improve our documentation, I'd also like to use search analytics together with Matomo.

Describe the solution

I need a way to capture the search term in the UI and send it for search analytics to Matomo. For using website tracking with Matomo, see https://developer.matomo.org/guides/tracking-javascript-guide#internal-search-tracking

I just want to configure it as parameter for docsearch in JavaScript.

Alternatives you've considered

One alternative would be building my own search UI with InstantSearch.js. To me this looks like an overkill, because I would need to duplicate the logic and the design within typesense-docsearch.js.

Which solutions do you have in mind?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions