filipr27

GA4 - payment_error - Duni

Sep 8th, 2023 (edited)
1,079
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Fire this event when an error occurs during payment and the transaction is not successful.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'payment_error',
  7.  'payment_method': 'card',  //Variable value
  8.  'error_type': 'card expired'  //Variable value
  9.  });
  10. </script>
Advertisement
Add Comment
Please, Sign In to add comment