rough-fountain-70422
10/19/2023, 3:20 PM"{\"response\":\"message type identify is not supported\",\"firstAttemptedAt\":\"2023-10-19T14:32:37.116Z\",\"content-type\":\"application/json\"}"millions-activity-52391
10/19/2023, 3:20 PMmillions-activity-52391
10/20/2023, 12:02 PMexport function transformEvent(event, metadata) {
if (event.type === "identify") {
return;
}
return event;
}
Ideally identify events should not be sent to destination but since the destination is in Beta it still has a few issues.
Also sample user_transformations . Let me know if you need help with 3.rough-fountain-70422
10/20/2023, 3:40 PMrudderanalytics.track("Order Completed", {
event_id: 'eventIDordercompleted',
order_id: "transactionId",
email: 'SHA-256 ENCODED EMAIL' // HERE
}, {
traits: {
email: 'SHA-256 ENCODED EMAIL', // OR HERE?
lastname: "Keener",
firstname: "Alex",
action_source: "offline"
}
});rough-fountain-70422
10/20/2023, 3:43 PMmillions-activity-52391
10/25/2023, 2:17 PMYes the email should be sent as a SHA 256 hash to the destination as perthese docs. You can check in the destination live-events that the email column is sent as a SHA 256 hash. Let me know if this is not working properly.What I meant by the above is that the email should be sent to the destination as SHA 256 hash. However, that does not mean that you need to send it as a SHA 256 hash. It is the job of the Rudder transformer to convert your plain text email to a SHA 256 hash. Hence if the plain text email that you send from your source is not sent as a SHA 256 hash to the destination, you should inform me so that I can raise a bug to the team that transformer is not convert the email to a SHA 256 hash.
millions-activity-52391
10/25/2023, 2:20 PMrough-fountain-70422
10/27/2023, 8:10 PMimport { sha256 } from '@rs/hash/v1';
export async function transformEvent(event) {
const email = event.context?.traits?.email;
// Prevent 'identify' from being sent in cloud mode
if (event.type === "identify") {
return;
}
if (email) {
event.context.email = sha256(email);
event.context.em = sha256(email);
}
return event;
}rough-fountain-70422
10/27/2023, 8:11 PMem field or if you do that.millions-activity-52391
10/30/2023, 12:50 PMmillions-activity-52391
10/30/2023, 12:54 PMmillions-activity-52391
10/30/2023, 1:02 PM