Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track what people search for on the site #47

Closed
metmarkosaric opened this issue Aug 2, 2021 · 12 comments · Fixed by #119
Closed

Track what people search for on the site #47

metmarkosaric opened this issue Aug 2, 2021 · 12 comments · Fixed by #119
Labels
Feature Request New feature or request

Comments

@metmarkosaric
Copy link
Collaborator

metmarkosaric commented Aug 2, 2021

This is something we may do for all sites in the future but might be easier to do for WordPress as the WordPress site search is more standardized. Basically having a custom event called "Site Search" or something like that and sending all the different things people search for as custom props. Then site owners will have a list of keywords / topics people search for on the site.

Update: Latest version of our WordPress plugin introduces site search tracking. You can see the popularity of different search terms and the number of search results for the individual terms. Details at: https://plausible.io/wordpress-analytics-plugin

@masteradhoc
Copy link

+1

@metmarkosaric
Copy link
Collaborator Author

We now have a feature that allows you to get search terms so perhaps we can integrate this somehow with the WordPress plugin in the future. See https://plausible.io/docs/custom-query-params

@masteradhoc
Copy link

@metmarkosaric any ETA on this? Asking for the project we would like to kickoff end of the month. We're not allowed to use plausible if we dont have a native search integration

@metmarkosaric
Copy link
Collaborator Author

hi @masteradhoc! no ETA at the moment unfortunately. we're actively looking for some external help with our WP plugin as we'd like to speed up its development. at the moment, the best way to get search terms would be with this feature. it works very well with the native WordPress search: https://plausible.io/docs/custom-query-params

@metmarkosaric metmarkosaric added the Feature Request New feature or request label May 13, 2022
@jdevalk
Copy link
Contributor

jdevalk commented Jul 19, 2022

@metmarkosaric I've got an implementation ready with the custom query param above, will do a pull shortly. But I'm actually wondering if this is the right way to go. Wouldn't it make more sense to:

  • send a pageview to <example.com>/search/
  • send an event named "Search" with the value as props, so I'd do:
plausible('Search', {props: {keyword: 'test'}})

That'd make it a lot easier to look at those stats?

@metmarkosaric
Copy link
Collaborator Author

nice one @jdevalk, thanks again! @ukutaht is the best person to speak to in terms of how it should work technically. i can see Uku shared some details here on his thinking: plausible/analytics#164 (comment)

@jdevalk
Copy link
Contributor

jdevalk commented Jul 19, 2022

@ukutaht I think the biggest problem is that once I filter by one thing, for instance, resultCount, I can't see the other variables anymore. So I couldn't see keyword when filtering by resultCount == 0:

filter-problems

@Dan0sz
Copy link
Collaborator

Dan0sz commented Apr 13, 2023

@ukutaht would be good to get some input on this before continuing with #87?

@ukutaht
Copy link
Contributor

ukutaht commented Apr 13, 2023

Yes I think the custom event approach proposed by @jdevalk is the best. As he mentioned there's a limitation on filtering/displaying more than a single custom prop at a time. This is a known limitation on the backend that we are planning to address in the future.

@jdevalk
Copy link
Contributor

jdevalk commented Apr 13, 2023

Done in #119 above.

@Dan0sz
Copy link
Collaborator

Dan0sz commented Jun 7, 2024

This is included in the latest beta of v2.1.0.

@Dan0sz Dan0sz closed this as completed Jun 7, 2024
@metmarkosaric
Copy link
Collaborator Author

Update: Latest version of our WordPress plugin introduces site search tracking. You can see the popularity of different search terms and the number of search results for the individual terms. Special thanks to @jdevalk! Details at: https://plausible.io/wordpress-analytics-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants