View difference between Paste ID: J9LKW19u and c79UnwTt
SHOW: | | - or go back to the newest paste.
1-
// Fire this dataLayer event when a user is redirected back to the commerce.slb.com website after creating an account from the subdomain csi.slb.com or delfi.b2clogin.com signup page. The event should fire only for successful registrations.
1+
// Fire this dataLayer event when a user clicks on a menu link. There are three types of menus: top menu, sub-menu, and footer menu
2
 
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'sign_up',
6+
 'event': 'menu_click',
7-
 'userId': '123456789'  // User ID from the website's database.
7+
 'menu_type': 'sub-menu',  // top menu, sub-menu, footer menu
8
 'menu_link_name': 'threads',  // home, store, threads, etc.
9
 'sub_menu_category': 'creative',  // agency, creative, data, etc. - include this parameter only for sub-menu clicks
10
 'click_text': 'see all articles'  // creative (or any other category), articles, see all articles, or article title - include this parameter only for sub-menu clicks
11
 });
12
</script>