Latest 0.0.6
Homepage https://github.com/itamaker/SunnyAnalytics
License MIT
Platforms ios 7.0, requires ARC
Authors

SunnyAnalytics-alpha beta v0.0.6

本工程用于APP用户行为埋点

Installation with CocoaPods

Podfile

pod "SunnyAnalytics"

1.初始化统计模块:

通过SAAnalytics
类初始化

/**
*  初始化数据统计
*
*  @param baseUrl      埋点上传URL
*  @param reportPolicy 发送策略
*  @param channelId    渠道ID
*/
+(void)initSAAnalytics:(NSString *)baseUrl  reportPolicy:(SAReportPolicy)reportPolicy channelId:(NSString *) channelId;

2.事件监听方法

[1]按钮点按事件
/**
*  按钮事件统计
*
*  @param operateType 名称
*  @param objId       ID
*  @param optParams   参数
*/
+(void)doEvent:(NSString*)operateType objectId:(NSString*)objId params:(NSString*)optParams;

[2] 页面停留时长

#pragma mark - 在UIViewController---viewWillAppear----方法中加入如下方法

/**
*  UIViewController 创建时调用
*
*  @param page UIViewController名称
*/
+(void)beginPage:(NSString*)page;

#pragma mark - 在UIViewController---viewWillDisappear----方法中加入如下方法

/**
*  UIViewController 销毁时调用
*
*  @param page UIViewController名称
*/
+(void)endPage:(NSString*)page;

欢迎大家 issue

Latest podspec

{
    "name": "SunnyAnalytics",
    "version": "0.0.6",
    "summary": "SunnyAnalytics.",
    "description": "A longer description of SunnyAnalytics in Markdown format.nn* Think: Why did you write this? What is the focus? What does it do?n* CocoaPods will be using this to generate tags, and improve search results.n* Try to keep it short, snappy and to the point.n* Finally, don't worry about the indent, CocoaPods strips it!",
    "homepage": "https://github.com/itamaker/SunnyAnalytics",
    "license": "MIT",
    "authors": {
        "amaker": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/itamaker/SunnyAnalytics.git",
        "tag": "0.0.6"
    },
    "source_files": [
        "Classes",
        "Classes/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "libraries": "z",
    "requires_arc": true
}

Pin It on Pinterest

Share This