Integrating with Segment

1. Visit the integration page on Preact and click Connect.

 You can find your Preact API secret by going to settings --> API. 


2. Preact will generate a Project Code. Copy the Project Code to your clipboard.


3. On the control panel, enable the Preact integration and enter your Project Code.


You're all done! Data should now start being collected by Preact via



Tips & Examples of Logging Via

Here is the Segment documentation on how to successfully log events to Preact.

Below are examples of how to send these events from both the server and client side: 

How to send proper events to us through from the server:

(example is in ruby, but same structure of the event data will apply to any language)
How to send proper events to us through from client-side javascript:

Have more questions? Submit a request


Powered by Zendesk