Exclude Bot Activity (Android)

If you have an Android app, you may notice activity in Mixpanel coming from Google bots, specifically Calypso AppCrawler. Filter by the Property “Model” to see where the activity is coming from:

2016-10-13_21_42_06.709312-calypso_appcrawler.png

Mixpanel cannot filter incoming data to your project to remove this bot activity, but you can put code in place to prevent the Calypso AppCrawler from logging Mixpanel events in the future. Specifically, register the Super Property $ignore to true onCreate of the MainActivity:

String Model = Build.MODEL;
if (Model == "Calypso AppCrawler"){
try {
JSONObject superprops = new JSONObject();
superprops.put("$ignore", true);
mixpanel.registerSuperProperties(superprops);
} catch (JSONException e){
Log.e("MYAPP", "Unable to add properties to JSONObject", e);
}
}

Also, you may want to consider changing the Googlebot crawl rate.

Related resources

Find your answer?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.