1. Visit the Segment.io 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 Segment.io control panel, enable the Preact integration and enter your Project Code.
You're all done! Data should now start being collected by Preact via Segment.io.
Tips & Examples of Logging Via Segment.io
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 Segment.io from the server:
(example is in ruby, but same structure of the event data will apply to any language)