How to keep record/log of user searches on our website?

My partner and I are trying to create a website (via Wix) and neither of us have much coding experience so any advice about the following tech issue would be much appreciated.

We would like to be able to see what our users are actually searching for via our search box on the main page of our website; ideally without the expense of an upgraded/premium analytics application.

We read somewhere that there might be a way to do this via the ‘console log’ function in Corvid but is this just something simple whereby we can write/enter a short piece of code in the editor?

Many thanks if anyone can point us in the right direction.

Regards

Mark

If you’re using a custom search box, you can create an afterQuery() Hook on the database that you’re querying to insert a new entry in a new database that holds each and every search performed by users.

Read about hooks here:
https://www.wix.com/corvid/new-reference/wix-data/hooks

Thanks Ahmad, that sounds like just the sort of thing we’re looking for! Will have a close look at that link tonight. Much appreciated.

You’re welcome :wink: