Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks on a link in the "popular searches" section on the "no search results" page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'popular_searches_click',
- 'search_term': 'oil drill', //The term that the user searched for.
- 'results_count': '35', //The count of results for a search term or applied filter.
- 'website': 'www.slb.com', //The website hostname where the event happened.
- 'content_group': 'magazine' //The content group that the content piece belongs to.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment