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.

Segment Actions Destination Fails for Page Viewed Event

Issue

When setting up an Actions-based destination in Segment for a JavaScript website source, you may find that the mapping fails with a message stating no event matches the trigger condition Page Viewed. You might expect the default Page Viewed event to be available for mapping, but it is not detected.

 

Product

Twilio Segment

 

Environment

Segment Console

 

Cause

This behavior occurs because the JavaScript website source (analytics.js) is sending page calls, rather than track calls with the event name Page Viewed. Since the page call does not have an event name of Page Viewed, attempting to map using Page Viewed as the trigger event will fail.

 

Resolution

To resolve this issue:

  1. In the Segment Console, navigate to your destination mapping settings.
  2. Instead of mapping to the event name Page Viewed, create a mapping for the event type page.
  3. Save the mapping and test to confirm that events are now being picked up by the destination.

 

Additional Information 

  • This is a common point of confusion, as page calls are standard for website sources and do not use the Page Viewed event name.
  • If you continue to experience issues after updating the mapping, review the event payloads in the Segment Debugger to confirm the event type being sent.

 

Have more questions? Submit a request
Powered by Zendesk