DTM - Site Internal Search Issue.

aruns59381014

12-06-2018

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.

Accepted Solutions (0)

Answers (0)