Hi. I was wondering if there’s any way to set comm...
# support
c
Hi. I was wondering if there’s any way to set common properties that are associated with every subsequent event on Flutter sdk like we have super properties on Mixpanel. The use case is - we want to set utm parameters that we get from deep links.
k
Hey @creamy-horse-92831, We do not support setting common properties, so that they can be attached with all the subequent events made as of now.
c
Is there a way to replicate the behavior? Maybe using
identify
or
group
.
k
yes, you can use identify and set those common properties as traits for now and then use a transformation to set them back as properties. (or) else you can write your own layer on top of track call which would add the persisted properties and send them to flutter sdk. something similar to below:
Copy code
void customTrack(String eventName, {RudderProperty? properties, RudderOption? options}) {
  // get persisted properties and update the properties object. 
  properties = properties+persisted_properties;
  rudderController.track(eventName, properties, options);
}
However I had forwarded this request to the Product team
gratitude thank you 1