Question
Can I use insert functions with device mode destinations in Segment? I want to modify or drop events before sending them to a device mode destination.
Product
Twilio Segment
Environment
Segment Console
Answer
No, insert functions are only supported for cloud-mode (server-side) destinations in Segment. Device mode destinations, where events are sent directly from the client to the destination, do not support insert functions. If you need to modify or filter events for device mode destinations, consider using destination middlewares, which allow you to intercept and change events in the browser before they are sent.
Additional Information
For more details on destination middlewares and supported use cases, refer to the Segment documentation on Destination Middlewares.