filipr27

ga4 - slb new - login

Sep 12th, 2022
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Push this dataLayer event when a user successfully logs in.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'login',
  7.  'website': 'www.slb.com',  //The website for which the user signed up.
  8.  'user_id': '<user_id>'  //Unique user ID of a registered user from the website's database.
  9.  });
  10. </script>
Advertisement
Add Comment
Please, Sign In to add comment