My Favorite List

const handleInputChange = debounce(function() { var searchQuery = searchInput.value; if (searchQuery.length > 3) { dataLayer.push({ 'event': 'custom_search_input', 'search_term': searchQuery, 'user': 'Guest', }); } }, 300); // Adjust the delay as necessary searchInput.addEventListener('input', handleInputChange); });