SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Unable to Send Alias Calls through Segment Connections

 

Issue

When attempting to map tracking data to an Alias call through Segment Connections, the destination fails to process the transaction because it does not natively support the standard Alias event type. Consequently, the expected event transformation cannot be performed, causing identity data to fail to route to your target Segment sources and subsequent downstream destinations.

 

Product

Twilio Segment

 

Environment

Segment Console

 

Cause

Segment Connections does not provide direct mapping support or native handlers for standard incoming Alias calls.

 

Resolution

To bypass this limitation, you can route your identity data as a Track event and use a Source Insert Function to transform the event type during ingestion.

  1. Configure your source tracking code to send a standard Track event that includes both the previousId and userId fields inside the event properties payload.

  2. In your Segment workspace, create a new Source Insert Function to intercept this specific placeholder Track event.

  3. Write the function code to dynamically overwrite the event type string from track to alias.

  4. Adjust any accompanying payload properties within the function script to match the exact format required by your downstream vendor.

  5. Connect the completed function to the target Segment Source receiving data from your connection pipeline. This ensures the event is fully converted from a Track call to an Alias call before final ingestion and delivery to your downstream destinations.

 

To summarize, the data flow pipeline looks like this:

Data Source (sends Track event) → Segment Connections Destination → Source Insert Function (converts track to alias) → Segment Source → Downstream Destinations

 

Additional Information 

For efficient function usage, keep logic simple and targeted, and monitor execution counts to avoid unnecessary billing. Professional services are available for advanced implementation guidance.

 

Have more questions? Submit a request
Powered by Zendesk