Integrations
Direct Integrations

Segment and Webhook

Introduction

Integrating with Segment or Webhook allows you to process the raw event data from Navattic in any way you want. Navattic strives to minimize the changes to the Segment and Webhook integrations, and if necessary will provide ample notice for any breaking changes.

Events will be sent to your Segment or Webhook setup whenever a Visitor session in your demo is marked as closed. The timestamp in each respective event will be an ISO-8601 formatted date-time string that signifies the closing time of the session. The event will also contain information about the session, including a list of the recorded events associated with the session, as well as the corresponding end-user the session relates to, and the company account, if any (company account can be null).

A free service like https://webhook.site/ can be an easy way to get started and test the Webhook integration.

⚠️ This is a public webhook testing service, so it is recommended only to send test data when using this, as you could inadvertently expose customer event data.

The event structure varies slightly between Segment and Webhook, as shown below, but the data sent is the same.

Setup Video



Use the Webhook integration to integrate with a Zapier workflow using a Zap URL.

Learn more about triggering Zaps from webhooks.

Segment

Segment supports two different types of events: track and identify. Track events contain information about how a visitor interacted with your demo (e.g. viewed a flow step) while Identify events contain identification information for the associated visitor and company account.

Segment Example Track Event

JSON


Segment Example Visitor Identify Event

JSON


Segment Example Company Account Identify Event

JSON


Webhook Example Event

The event is sent to your webhook address as a POST request. The playbook action run will be marked as cmpleted when the payload is successfully delivered to your webhook.

JSON