Adding a function to filter the parameters before sending them to mixpanel
Fix for segmentation apis