Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Preact Destination



Identify

identify page anchor

To create users in in Preact, use the Identify method. Users must be identified on the client side for events to appear in Preact.


To group users into accounts in Preact, use the Group method.


The Track method records events in Preact. Users must be identified on the client side for events to appear in Preact.


Recording errors

recording-errors page anchor

Preact can be useful for customer support. For that to work, you can send error events to Preact.

Add a "!" as the first character in the event name and Preact recognizes it as an error event. Properties sent with the event also show up in Preact.

Here's a JavaScript example:

1
analytics.track('!Image upload error', {
2
File size: '890KB',
3
File extension: '.JPG',
4
Message: 'File size too large'
5
});