Docs
Privacy
保护用户数据

保护用户数据

Overview

You have full control over the data you send to Mixpanel。Here we share best practices for tracking in a privacy-friendly way。

自动用户输出跟踪

You can use the opt_out method in Mixpanel's SDKs to opt users out of tracking。This state is controlled by a flag that is set asa browser cookie or localStorage。Note:because this setting is stateful,it only exists on our Web/Mobile SDKs-if you're tracking from your servers,you will need to store this opt-out setting in a database and check it before sending any track calls。

mixpanel.opt_out_tracking();

You can also configure our SDKs to opt users out of tracking by default:

mixpanel.initYOUR TOKEN单击功能区上,{opt_out_tracking_by_default 真,真});

禁用几何

ixpanel's Web and Mobile libraries use IP address to enrich events with geographic information like city,country,and region。You can disable this using the following configuration options in each of our SDKs:

mixpanel.init“YOUR_TOKEN”单击功能区上,{“ip” 假、假})

Anonymizing Users

ixpanel does not know,or need to know,any identifying information about users(like email or phone number)。ixpanel only needs to know that a set of events were performed by a particular user ID.You choose the ID and you choose how you want to send that ID to Mixpanel。

If you want to analyze aggregate user behavior without being able to drill down into any particular user,we recommend generating a hash of some unique ID of the user and using that hash as the user’s ID when you call the.identify()method in our SDKs。

Blacklisting Default Properties

Our JavaScript library自动变速箱default propertiesto help enrich your data,but you can choose to prevent the setting of default properties using the property_blacklist config option。从预处理阶段开始,specify a list of properties to blacklist on library load,for example:

mixpanel.init“YOUR_TOKEN”单击功能区上,{
property_blacklist单击功能区上'$referrer'单击功能区上, 'custom_property']
});

Was this page useful?