Skip to content

Commit d3cfc4c

Browse files
Apply suggestions from code review
1 parent f1ffe94 commit d3cfc4c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/connections/functions/insert-functions.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,14 @@ Segment's data pipeline applies Destination Filters before invoking Insert Funct
500500

501501
There is an 120-Character limit for the insert function display name.
502502

503-
##### Why does the Event Delivery tab show "Unsupported Event Type" errors for events supported by the destination after enabling the insert function?
503+
##### Why does the Event Delivery tab show "Unsupported Event Type" errors for events supported by the destination after I enabled an insert function?
504504

505-
This error occurs because your insert function code might not be handling all event types (page, track, identify, alias, group) that are supported by the destination. When these unlisted events pass through the function, they are rejected with the "Unsupported Event Type" error.
505+
This error occurs because your insert function code might not be handling all event types (Page, Track, Identify, Alias, Group) that your destination supports. When these unlisted events pass through the function, they are rejected with the "Unsupported Event Type" error.
506506

507-
To resolve this, ensure your insert function includes handlers for all expected event types and returns the event object for each. Here’s an example of how you can structure your insert function to handle all event types:
507+
To resolve this, verify your insert function includes handlers for all expected event types and returns the event object for each. Here’s an example of how you can structure your insert function to handle all event types:
508508

509-
```async function onTrack(event, settings) {
509+
```
510+
async function onTrack(event, settings) {
510511
//Return event to handle page event OR Your existing code for track event
511512
return event;
512513
}

0 commit comments

Comments
 (0)