dusanmiha

GA4 - contact_form_submission - Duni

Apr 27th, 2023 (edited)
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Push this dataLayer event when a user submits a contact form successfully.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'contact_form_submission',
  7.  'cd_form_category': 'Order'  //cd_form_category should have value from category dropdown. (for example, Order, Delivery, Payment & Invoices, Products, Personalized products, Sample Requests)
  8.  });
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment