Commit 82fbcfc5 authored by IOS-张 博's avatar IOS-张 博

新增智能搜索埋点

parent a9a78f83
......@@ -8,6 +8,15 @@
#import "QGPasteAlertView.h"
#import "QGBasicUITool.h"
#import "QGAppCoreModelClickEvent.h"
#import "QGAnalyticsService.h"
@interface QGPasteAlertView ()
/// 复制的信息
@property (nonatomic, strong) NSString * pasteStr;
@end
@implementation QGPasteAlertView
......@@ -19,6 +28,8 @@
self.popType = PopViewTypeAlert;
self.contentView.backgroundColor = [UIColor clearColor];
self.pasteStr = pasteStr;
//底部背景
UIView * contentView = [UIView creatViewWithSuperView:self.contentView backgroundColor:[UIColor whiteColor]];
contentView.layer.cornerRadius = 6;
......@@ -100,6 +111,11 @@
- (void)searchButtonClick
{
//神策埋点
QGAppCoreModelClickEvent * clickEvent = [QGAppCoreModelClickEvent acmcEventWithPage:@"智能搜索" path:@"智能搜索" name:@"搜索" detail_name:nil acmc_model_other:self.pasteStr];
[QGAnalyticsService analyticsTrackWithEvent:clickEvent];
if (self.searchBlock) {
self.searchBlock();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment