Hello! I integrated through the Node.js SDK, whic...
# support
h
Hello! I integrated through the Node.js SDK, which serves as the backend for my e-commerce. However, when the event is sent to analytics, it always registers as a "Desktop" device, even for mobile events, which are also being converted to desktop. Is there a parameter I need to send to differentiate the user's device?
m
Hey There! 👋 Your message has been received by the RudderStack team. 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.
Hi Caua Coelho, Which parameter are you using the channel parameter? You can send your data as a property in the event properties. Then use a user transformation and swap that parameter (original_channel). Your transformation should look like this.
s
Copy code
export function transformEvent(event, metadata) {
    const original_channel = event.properties.original_channel;
    event.channel = original_channel;
    delete event.properties.original_channel;
    return event;
}
Please test the transformation before using in production.
👍 1