We want to send identify events, along with a few ...
# support
s
We want to send identify events, along with a few other custom events, to a destination. However, we're only seeing the custom events arrive at the destination, not the identify events. We have a transformation configured:
Copy code
export 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?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
m
Hey Will, have you tested this custom transformation on all the events?
s
We have created identify and custom events, but only the custom events make it to the destination.
l
event.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
Copy code
if (event.type === "identify") {
  return event
}
s
Can you point me to where the schema of RudderStack events is documented? I'm unfamiliar with a type field.
l
You can use the "Import event" option under the "Test Payload" section when creating/editing a transformation to get a sense of the schema of various event types
👍 1
s
I see both the "event" and "type" fields set to "identify" in the source JSON:
Copy code
"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?
l
Did you try debugging this via transformation live events ?
s
I don't think so. Where is that in the UI?
l
There is a button on top right of the transformation details page
s
OK, I see it. Testing.
I see the identify event listed in the live events for the source, but it isn't listed in the transformation live events, not even as 'dropped'
l
Which destination are you sending events ?
s
To EventBridge in AWS
l
but it isn't listed in the transformation live events, not even as 'dropped'
Are you seeing non-identify events in transformation live events ?
s
Yes, I see the custom events
m
Hi Will, there seems to be a difference in the sample event payload in the transformations and the actual payload sent for the identify call. In the sample payload we have { "type": "identify", "event": "identify" } However, in the actual identify event payload, we only have (the event column is missing) { "type": "identify" }
Hence as Shashank suggested, you can make a small change in the transformation and the Identify events should start flowing
Copy code
export 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;

}
Sharing a few images of the sample Identify Payload showing that the event was dropped
Also since you are a paying customer you can use the internal channel between Front Row and RudderStack for any questions.
s
With the following test payload, my old allowlist transformer allowed it in the test:
Untitled
I changed the allowlist transformer to this:
Copy code
export 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.
However, I still don't see it being sent to the destination outside of a test.
Where is the internal channel between Front Row and RudderStack?
m
Hi Will, I see that it is working in my case. Do you have any tracking plan that is dropping the identify events? Do you see the identify events in the transformation live-events?
Also you can ask Ben Pelo from your team to add you to the RudderStack Frontrow channel.
s
@shy-kite-21035 When you say you see it working, do you mean in the test simulator, or in live events? I just tested it again, and the identify event wasn't listed in the transformation or destination live events. Source live events: https://app.rudderstack.com/sources/live/2Tfa3JEkjGafc53E8yn8A9PltmX Destination live events: https://app.rudderstack.com/destinations/live/2TlZAtcAjuk0sd16CCsmgzLS3WM Transformation live events: https://app.rudderstack.com/transformations/live/2TlZGr17bHo8sLMMedx37dxUjk6
I joined the FR support channel, and posted there. Let's continue the discussion there.
m
I saw it working in the live events. I cannot access your live-events so won't be able to access the links.
Just out of curiosity can you remove the user transformation completely and check if the Identify events are sent to the destination.