How to track sign-ups in Google Analytics

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


Adding GA event tracking in ReferralHero is very simple. Just use the afterSuccess callback in the Configuration file and choose which events you want to send.

<script type="text/javascript">
  window.RHConfig = {
      callbacks: {
        afterSuccess: function(output) {
          if (output.response == "subscriber_created") {
            ga('send', 'event', 'ReferralHero', 'sign-up', 'Waiting List');
          }
        }
      }
  }
</script>

Still need help? Contact Us Contact Us