Server-Side Event Triggering

Often you would want to trigger an event immediately after a certain page is loaded. While it’s possible to render a zaraz.track() call in your HTML script tags, you can instead use zarazData.events like this

<script>
  zarazData = {
    events: ['Signup completed', 'Payment received'],
  }
</script>

This will trigger the same events as when using zaraz.track("Signup completed") and zaraz.track("Payment received"), but will utilize the already existing network requests, resulting in a faster evaluation and better performance.