Integrating with Segment

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:
https://gist.github.com/gooley/efbb809a83394932afea

(example is in ruby, but same structure of the event data will apply to any language)
 
How to send proper events to us through Segment.io from client-side javascript:
https://gist.github.com/gooley/2e01202c3c6214c66c56

Have more questions? Submit a request

Comments

Powered by Zendesk