prabapro

Gravity Forms Listener

Sep 25th, 2025
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.   jQuery(function ($) {
  3.     $(document).on("gform_confirmation_loaded", function (e, id) {
  4.       window.dataLayer = window.dataLayer || [];
  5.       window.dataLayer.push({
  6.         event: "gravity_form_submitted",
  7.         form_id: id
  8.       });
  9.     });
  10.   });
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment