Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user selects a facet to filter out the search results or library page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'facet_select',
- '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.
- 'facet_title': '<facet_title>', //The title of the facet that was selected / deselected.
- 'facet_category': '<facet_category>' //The category where the facet belongs to.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment