# Query logs for custom search

**URL:** <https://community.hubspot.com/t/query-logs-for-custom-search/41102>\
**Category:** CMS Development\
**Created:** [July 21, 2021, 7:59pm UTC](https://community.hubspot.com/t/query-logs-for-custom-search/41102 "2021-07-21T19:59:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eismarketing](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eismarketing/32/1529_2.png) [@eismarketing](https://community.hubspot.com/u/eismarketing)\
**Post date:** [July 21, 2021, 7:59pm UTC](https://community.hubspot.com/t/query-logs-for-custom-search/41102/1 "2021-07-21T19:59:17Z")

</div>

Hello,

We have a custom search filter set up for blogs. Users can also enter a text string. You can see how it works on this page:

[https://www.earley.com/insights](https://www.earley.com/insights)

What I’ve realized is that we have no access to understanding what search queries people enter into that text box. Is there a way to grab that information?

Thanks in advance,

Sharon

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [July 22, 2021, 10:03am UTC](https://community.hubspot.com/t/query-logs-for-custom-search/41102/2 "2021-07-22T10:03:32Z")

</div>

Hi @eismarketing ,  
If you want grab the information page load time, add form and after filling the form blog search/ Show page ETC.

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![eismarketing](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eismarketing/32/1529_2.png) [@eismarketing](https://community.hubspot.com/u/eismarketing)\
**Post date:** [July 23, 2021, 12:39pm UTC](https://community.hubspot.com/t/query-logs-for-custom-search/41102/3 "2021-07-23T12:39:43Z")

</div>

Hello webdew,

I appreciate you taking the time to respond but I must admit I don’t understand the answer!

Sharon

---

<div class="post-metadata">

**Author:** ![miljkovicmisa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miljkovicmisa/32/86357_2.png) [@miljkovicmisa](https://community.hubspot.com/u/miljkovicmisa)\
**Post date:** [July 24, 2021, 12:38pm UTC](https://community.hubspot.com/t/query-logs-for-custom-search/41102/4 "2021-07-24T12:38:54Z")

</div>

Hi @eismarketing , could you give some more info on what you need to accomplish?

i.e Your search has suggestions that are displayed as you type, so searching for “inf” would probably give a few results and it is meaningless to try and catch those strings.

A more meaningful approach would be to get the results only when someone goes to the results page after searching for something, so you can get the searched term from the dictionary with `{{ request.query_dict.term|escape }}` on your search results page.

Having the term you can do a lot of stuff, it just depends on what you want to accomplish.

One idea is to submit this result to a form, thus you can see all the submissions and compare them, see some analytics about the number of results or something else, it is difficult to suggest something without knowing what you would like to accomplish. Note, you will need to create a form with a property for the searched term.  
Another idea is to use a custom event handler or something entirely else, like a workflow, etc.

So maybe you can elaborate a bit more on your request so we could help a bit more.

Some reference links here.  
[The dictionary from where to get the query\_dict. (Search for query\_dict)](https://developers.hubspot.com/docs/cms/hubl/variables#http-request-variables)

[Submitting data to a form using Forms API](https://legacydocs.hubspot.com/docs/methods/forms/submit_form)

Hope my answer helped you get a direction on where to go next, and maybe we’ll be able to help you more after you share some more info about your approach.  
_If it did help you or you found it useful please mark it as a solution._
