thankful-gpu-70135
07/24/2023, 9:49 PMsubscribe: true to get it to subscribe.
Would this be a good use of Transforms to do this controlled completely within Rudderstack?
export function transformEvent(event, metadata) {
const eventType = event.type?.toLowerCase();
if (eventType == 'identify') {
event.context.traits.subscribe = true;
event.context.traits.listId = '1234'
}
return event;
}
Main reason for this is to minimize business logic related to destinations within our codebase and offload that to Klaivyo. We can then make changes more easily decoupled from our engineering team.
The only pitfall I can think of is this will then consume one of my 5 transformations i have available in our Starter plan (which is absurdly small # btw). Also I think that Transformations are more intended for destination specific things vs on ingest like I'm doing there, but correct me if I'm wrong.millions-activity-52391
07/24/2023, 9:49 PMmillions-activity-52391
07/25/2023, 3:17 PMthankful-gpu-70135
07/25/2023, 3:33 PM