Friend League lets users move data-add operations to apps

Source: Internet
Author: User
Tags add time

Get user Data Moving-add operations to apps

I. First acquaintance of the League of Friends

Friends of the league have heard that, in the integration of the application of the League of Friends before the Friends of the alliance is not so deep understanding. After using the Friends League, only to find that friends are very strong.

What can the data be obtained from the integrated AU?

User's basic information : such as the number of users, the proportion of active users, the user's geographical analysis, user growth and so on.

User Behavior Statistics : User's use of a module, the number of clicks on a button, by the amount and value of the user behavior statistics. Let developers more clearly analysis of user behavior, more clearly understand themselves, the so-called understanding of the enemy.

App exception error statistics : Monkey test ran for a week did not run out of the problem, with the Friends of the League after a week after the report of some problems detected. The user's scene is complex and these exceptions are very valuable.

Two. Integration of the League of Friends

1. Application integration Umeng:

Once you've applied for a friend's account, you'll get Umeng's appkey, and then integrate the Umeng SDK into your code, even if the initial integration is complete. To count user behavior in the app, you need to add time to all activity and fragment OnPause and Onresume, which is the basis for statistical user basic information. Of course, it is not possible to add each, preferably in all the activity and fragment the parent class to add this can be once and for all, late changes are very convenient.

2. Statistical events:

The strong point of the league is that it captures the behavior of the user, and of course it needs to add code to the program.

A. Log in to your friend's account and define your own events.

  

Mobclickagent.onevent (context, event);

B. Add time in the appropriate location in the code. For example, if you want to count the number of clicks on a button, increase the count in the onclick click event of the button.

map<string,string> map = new hashmap<string,string>();        Map.put ("Statistic value 1", "Statistic value 1");        Map.put ("Statistic value 2", "Statistic value 2"); 
Mobclickagent.oneventvalue (context, event, map, value);

C. Event statistics effect.

Feature Usage-Custom events

Event ID          event name                 yesterday's message number                       details enent1         Event 1                       8852      4177                      View Enent2        event 2                      8301      3772                      View Enent3        event 3                      6157       3967                      View

  

3. Check the application for exception errors:

In the error analysis-Error List:

Java.lang.IndexOutOfBoundsException:Invalid index 0, size is 0    2.1_ver_2015.01.29_14:51:24    8 days ago    2015-02-14 09:33:05    66

After you modify the error, you can modify the error entry to fixed.

4. Reference documentation

Development Documentation: HTTP://DEV.UMENG.COM/ANALYTICS/FUNCTIONS/NUMEKV#1

Umeng demo:http://www.umeng.com/apps/4100008dd65107258db11ef4/reports/realtime_summary

Friend League lets users move data-add operations to apps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.