Expand my Community achievements bar.

DTM - Site Internal Search Issue.

Avatar

Level 2

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.

$(".SearchPageForm, .SearchForm").submit(function(e){

    var searchText =  $(this).find(".lia-form-type-text").val();

    return searchText;

  });

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.

0 Replies