Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

DTM - Site Internal Search Issue.

aruns59381014
Level 2
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