How to add Google Analytics event tracking

This section assumes you are already familiar with Google Analytics Event Tracking. If you are not, read this first.


Adding GA event tracking in Maître is very simple. Just use the afterSuccess callback and choose which events you want to send.

<script type="text/javascript">

  window.Maitre = {
    uuid: "MFXXXXX",
    callbacks: {
      afterSuccess: function(data, form) {
        if (data.response == "subscriber_created") {
          ga('send', 'event', 'Form', 'signup', 'Waiting List');
        }
      }
    }
  };
</script>

Still need help? Contact Us Contact Us