Streaming live at 10am (PST)

Problem with events using Universal Analytics (GA)


#1

Greetings everyone!

I've got a problem with tracking events using Universal Analytics.
Check my code, please, and help. Thanks!

I've got 2 different goals to track: callback and form confirmation.
So, i've added this code into Footer code section (into webflow custom code menu):

  1. for callback tracking
<script>
  $(document).ready(function() {
    $('#сallback-submit-button').on('click', function() {
      ga(['send', 'event', 'form_confirmation', 'push_callback_button', 'reachgoal']);
    });
  });
</script>
  1. and for order submition tracking.
<script>
  $(document).ready(function() {
    $('#order-submit-button').on('click', function() {
      ga(['send', 'event', 'form_confirmation', 'push_order_button', 'reachgoal']);
    });
  });
</script>

I'm using proper ID's in script, same with buttons from clicking on which i need to track goals.


Thank you in advance, guys!


#2