I have captured the internal site search through following data element script and this script is working fine when we test on browser console. And mapped this data element with eVar on page load event, but it's not sending search term to eVar.
var searchText = $(this).find(".lia-form-type-text").val();
If I want to send this search term to the Analytics what event should I need to trigger?
Do we have any other solution to implement the same?
Thanks in advance.