View difference between Paste ID: E91k3Q5m and EPJ2F3y9
SHOW: | | - or go back to the newest paste.
1-
//Push this dataLayer event when the user clicks on a link in the "popular searches" section on the "no search results" page.
1+
//Push this dataLayer event when the user selects a facet to filter out the search results or library page.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'popular_searches_click',
6+
 'event': 'facet_select',
7
 'search_term': 'oil drill',  //The term that the user searched for.
8
 'results_count': '35',  //The count of results for a search term or applied filter.
9
 'website': 'www.slb.com',  //The website hostname where the event happened.
10-
 'content_group': 'magazine'  //The content group that the content piece belongs to.
10+
 'content_group': 'magazine',  //The content group that the content piece belongs to.
11
 'facet_title': '<facet_title>',  //The title of the facet that was selected / deselected.
12
 'facet_category': '<facet_category>'  //The category where the facet belongs to.
13
 });
14
</script>