Search

GA4 data layer event that logs this event to indicate when the user has performed a search. You can use this event to identify what users are searching for on your website or app. For example, you could send this event when a user views a search results page after performing a search.

Home ┬╗ Recommended Events Data Layer ┬╗ Search

Example dataLayer push for “search“.

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
 event: "search",
 search_term: "t-shirts"
});

Google Tag Manager Solutions

Enhanced Ecommerce Data Layer

Recommended Events Data Layer