Hi Team, we are integrating rudder SDK with our ap...
# support
g
Hi Team, we are integrating rudder SDK with our app. We are using the identify and track events. We are getting the traits in track event also even though we are not sending the traits, the SDK is somehow sending them on it's own, how to prevent this. I want to simply not send below field with my track event request "traits": { "anonymousId": "7900fde7-953d-4221-82ab-3268a1fe195a", "id": "1fbeef5e-f097-42d1-ab46-f3ab285de888", "pushToken": "cd8zOBPhTOyexKhygx2Ro9:APA91bEE7PQ9Da9xBYf4FiHrteDnkLvJJSN2b_XZJAFwFKuzG8aTbZwE6gMi1KkML8IWXiQjYvaZwcjtdQ6fd2RVds3zeMRKTq7dHoN_cdhzlTeqKKLIX9gMOz1EvE4avXxooSO4FsbI", "userId": "1fbeef5e-f097-42d1-ab46-f3ab285de888" }
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.
h
why dont you want them? You can remove them using a transform if your worried about a destination getting them that you dont want
can also override in the track call rudderanalytics.track( "Subscription Update", { campaign: "Subscribe" }, { traits: { } } );
🙏 1
g
You can either use the transformations (here's an similar transformation example for inspiration), or override the track call in the sdk at source. But as @hundreds-lifeguard-65770 mentioned, why is it important to remove this? You can keep it and just don't use it. It might be useful for future cases.
g
Am using user traits for user specific info like email, fcm token etc. hence don't want redundant data with every track event
Thanks will try the override method