stocky-vr-69425
10/13/2023, 2:32 AMexport function transformEvent(event, metadata) {
const property = event.event; // Edit event name
const allowlist = ["Content Liked", "Content Unliked", "Content Playback Exited", "identify"]; // Edit allowlist contents
if (!property || !allowlist.includes(property)) return;
return event;
}
Is this correct for what we want?millions-activity-52391
10/13/2023, 2:32 AMmost-ocean-90575
10/13/2023, 3:03 AMstocky-vr-69425
10/13/2023, 3:04 AMlimited-morning-82054
10/13/2023, 4:07 AMevent.event is the event name which might not be present in your identify events. If you want to check against the event type, you can use
if (event.type === "identify") {
return event
}stocky-vr-69425
10/13/2023, 4:08 AMlimited-morning-82054
10/13/2023, 4:11 AMstocky-vr-69425
10/13/2023, 4:12 AM"event": "identify",
"integrations": {
"All": true
},
"messageId": "10496ea6-f66e-4a00-b1b3-5e23753c03e3",
"originalTimestamp": "2023-10-13T04:10:31.452Z",
"rudderId": "a61b9562-8433-4bf8-9b93-cecd71516727",
"sentAt": "2023-10-13T04:10:36.572Z",
"type": "identify",
"userId": "180388626860"
So the transformer should work on the "event" field, right?limited-morning-82054
10/13/2023, 4:13 AMstocky-vr-69425
10/13/2023, 4:14 AMlimited-morning-82054
10/13/2023, 4:15 AMstocky-vr-69425
10/13/2023, 4:15 AMstocky-vr-69425
10/13/2023, 4:17 AMlimited-morning-82054
10/13/2023, 4:45 AMstocky-vr-69425
10/13/2023, 4:45 AMlimited-morning-82054
10/13/2023, 5:27 AMbut it isn't listed in the transformation live events, not even as 'dropped'Are you seeing non-identify events in transformation live events ?
stocky-vr-69425
10/13/2023, 5:48 AMmillions-activity-52391
10/13/2023, 7:28 AMmillions-activity-52391
10/13/2023, 7:32 AMexport function transformEvent(event, metadata) {
if (event.type === "identify") {
return event;
}
const property = event.event; // Edit event name
const allowlist = ["Content Liked", "Content Unliked", "Content Playback Exited"]; // Edit allowlist contents
if (!property || !allowlist.includes(property)) return;
return event;
}millions-activity-52391
10/13/2023, 7:38 AMmillions-activity-52391
10/13/2023, 7:40 AMstocky-vr-69425
10/13/2023, 7:45 PMstocky-vr-69425
10/13/2023, 7:45 PMstocky-vr-69425
10/13/2023, 7:46 PMexport function transformEvent(event, metadata) {
if (event.type === "identify") {
return event;
}
if (event.type !== "track") {
return;
}
const property = event.event; // Edit event name
const allowlist = ["Content Liked", "Content Unliked", "Content Playback Exited", "identify"]; // Edit allowlist contents
if (!property || !allowlist.includes(property)) return;
return event;
}
And it still allows that event through in the test.stocky-vr-69425
10/13/2023, 7:46 PMstocky-vr-69425
10/13/2023, 7:47 PMmillions-activity-52391
10/16/2023, 10:19 AMmillions-activity-52391
10/16/2023, 10:22 AMstocky-vr-69425
10/16/2023, 4:45 PMstocky-vr-69425
10/16/2023, 6:00 PMmillions-activity-52391
10/17/2023, 1:45 PMmillions-activity-52391
10/17/2023, 1:46 PM