For a given destination, in our case Intercom, is ...
# support
t
For a given destination, in our case Intercom, is there a way to not have it send user properties with the track call otehr than basics like user id and user email?
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.
h
You should be able use a user transformation for this - loop through the properties object and drop the ones you don’t need
t
@handsome-park-9396 what's the right way to do this in a transform for a single destination?
h
@thankful-gpu-70135 all transformations are destination-specific. You can create a new user transformation and apply to the Intercom destination only. It will modify the payloads sent to Intercom without impacting any other destinations
t
Thanks @handsome-park-9396. That makes sense. I want to strip most user traits as it interferes in some things for us.. wondering if there are any essential traits that should never be removed? My thought is
email
,
id
and
anonymousId
✅ 1
h
exactly - those are essential for maintaining user continuity across events.
t
I'm surprised this isn't a default feature into every transformation, with default off (meaning nothing is striped)
h
We do offer some templates for common use cases. Blocking specific properties isn’t one of our templates, but it could be. Still, its ultimately just a block of code - you can do basically anything you want to the payload 🙂
t
yeah but it then consumes valuable slots in the transformations
the first paid plan only supports max of 5 transformations so it forces you to think about how to minimize usage for really important cases. I stand by the opinion rudderstack shouldn't limit transformations in any paid plan given you can only have 1 transformations anyways on a given destination
I could use some help though.. I'm confused about whether I need to stripe out
event.context.traits
or
event.properties.user_properties
I'm having weird experience where the default "track" example event in the transformation editor has the traits at
event.context.traits
. But in practice when I wired up the transformation to my intercom destination, it was not in tha tformat. It was seen as
event.properties.user_properties
(which never has
email
,
id
as keys). I think this is due to my misunderstanding of when the transfomration is taking place then.
m
Hi @Trevin, so if you do run an Identify call before your track call then you should see the event.context.traits object being populated. However, I do not see any event.properties.user_properties in the source live-events (are these some properties you are adding?). Also the flow is as follows Source Event -> Gateway -> Tracking Plan -> User Transformation -> Destination Transformation -> Destination