Custom event callback enquiry form example


Showing an example of the event callback being used with Socket
<div id="socket-enquiry"></div>

<!-- If you haven't called it before -->
<script src="https://cdn.tutorcruncher.com/socket/latest/socket.js"></script>

<!-- Then -->
<script>
  socket('9c79f14df986a1ec693c', {
    mode: 'enquiry',
    element: '#socket-enquiry',
    event_callback: function (name) {
      if (name === 'enquiry_submitted') {
        window.ga('send', 'event', 'enquiry', 'enquiry-submitted', 'New York Branch')
      }
    }
  });
</script>