EduardET

invalid JS code

Nov 13th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. function gtag_report_conversion(url) {
  3.     var callback = function () {
  4.         if (typeof(url) != 'undefined') {
  5.         window.location = url;
  6.     }
  7.     };
  8.     gtag('event', 'conversion', {
  9.     'send_to': 'AW-840283043/8KgICOb2t3cQo-fWkAM',
  10.     'event_callback': callback
  11.     });
  12.     return false;
  13. }
  14. $( document ).ready(function() {
  15.     $( "form" ).submit(function() {
  16.         gtag_report_conversion();
  17.     });                            
  18. });
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment