Exclude people properties with click for mixpanel clicks

I am trying to remove a property for a user using the Java JavaScript API. As I see it, there is only a set of methods, but not a single method is installed. I tried setting the property using undefined or null, but when I do this, the property still exists without a value. I would like to completely remove it, since we can do this using the mixpanel interface. Is it possible?

Thanks for your help!

Some codes:

// Let set the property 'foo' with a value 'bar' to the current user mixpanel.people.set("foo", "bar"); // Now, let unset this proprety // Oops, there is no method unset... // Let try something else mixpanel.people.set("foo"); // nop... mixpanel.people.set("foo", undefined); // nop... mixpanel.people.set("foo", null); // the value is now empty but the property still exists 
+4
source share
2 answers

The Android MixPanel library (v4.6.4) has an unset(String) method for people's properties, maybe the JavaScript API has an equivalent, which I would suggest:

 mixpanel.people.unset("foo"); 

Perhaps this was not in August.

+1
source

You can do

mixpanel.people.unset("123", "my_unused_property")

or

mixpanel.people.unset("123", ["my_unused_property1", "my_unused_property2",..] )

This is an undefined signature (distinct_id, property_name)

distinct_id is the user id in mixpanel

http://www.rubydoc.info/github/mixpanel/mixpanel-ruby/Mixpanel/People#unset-instance_method

+1
source

All Articles