• Resolved palekgram

    (@palekgram)


    I’m using REST API Search V2 to search on my website and it doesn’t log it on to this plugin. I’m searching using this url:

    example.com/wp-json/wp/posts?search=technology

    But if I search using this url, it logs it to the plugin.

    example.com/posts?search=technology

    How am I able to log the searches using the wp-json url using the REST API? Is this possible? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mark

    (@markwolters)

    Hi @palekgram,

    you can set the ‘Custom search parameter’ option to ‘search’ (without qoutes) in the WP Search Insights Settings menu. This will track all searches which contain ?search= which is used by the Search REST API. Just tested it and it tracked my example.com/wp-json/wp/posts?search=technology search. Let me know if this works for you.

    Thread Starter palekgram

    (@palekgram)

    Hi Mark

    Thank you so much!

    This is the easiest solution that actually worked. It logged my searches using method!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to log searches using the WP JSON REST API V2?’ is closed to new replies.