dev
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.mogo.commons.analytics;
|
||||
|
||||
import com.elegant.analytics.Analytics;
|
||||
import com.mogo.commons.network.ParamUtils;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
* <p>
|
||||
* 埋点
|
||||
*/
|
||||
public class AnalyticsUtils {
|
||||
|
||||
/**
|
||||
* 埋点
|
||||
*
|
||||
* @param event 事件名称
|
||||
* @param properties 事件参数
|
||||
*/
|
||||
public static void track( String event, Map< String, Object > properties ) {
|
||||
Analytics.getInstance().setCustomParams( ParamUtils.getAnalyticsParameters() );
|
||||
Analytics.getInstance().track( event, properties );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user