Commit f78abf21 authored by 翟国钧's avatar 翟国钧

修改pv为page_view。修改fake为1的模拟pv事件

parent a44d0262
...@@ -28,7 +28,7 @@ PODS: ...@@ -28,7 +28,7 @@ PODS:
- GMLibrary/Network (0.0.1): - GMLibrary/Network (0.0.1):
- AFNetworking (~> 2.6.1) - AFNetworking (~> 2.6.1)
- GMLibrary/Cache (~> 0.0.1) - GMLibrary/Cache (~> 0.0.1)
- GMPhobos (0.1.2): - GMPhobos (0.1.3):
- GMLibrary (~> 0.0.1) - GMLibrary (~> 0.0.1)
- TMCache (2.1.0) - TMCache (2.1.0)
...@@ -42,7 +42,7 @@ EXTERNAL SOURCES: ...@@ -42,7 +42,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60 AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
GMLibrary: c31039ad32bc93f866d6c3052c20acb8cf9c1568 GMLibrary: c31039ad32bc93f866d6c3052c20acb8cf9c1568
GMPhobos: efde929e7f1030e9e94e4ec3bf76c632e51ff78e GMPhobos: 108c768eeb11a9939eba447c287058eee18807b9
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
COCOAPODS: 0.39.0 COCOAPODS: 0.39.0
{ {
"name": "GMPhobos", "name": "GMPhobos",
"version": "0.1.2", "version": "0.1.3",
"summary": "GM statistic data sdk", "summary": "GM statistic data sdk",
"description": "GM event track sdk.", "description": "GM event track sdk.",
"homepage": "http://git.gengmei.cc/gengmeiios/GMPhobos", "homepage": "http://git.gengmei.cc/gengmeiios/GMPhobos",
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
}, },
"source": { "source": {
"git": "http://git.gengmei.cc/gengmeiios/GMPhobos.git", "git": "http://git.gengmei.cc/gengmeiios/GMPhobos.git",
"tag": "0.1.2" "tag": "0.1.3"
}, },
"platforms": { "platforms": {
"ios": "7.0" "ios": "7.0"
......
...@@ -28,7 +28,7 @@ PODS: ...@@ -28,7 +28,7 @@ PODS:
- GMLibrary/Network (0.0.1): - GMLibrary/Network (0.0.1):
- AFNetworking (~> 2.6.1) - AFNetworking (~> 2.6.1)
- GMLibrary/Cache (~> 0.0.1) - GMLibrary/Cache (~> 0.0.1)
- GMPhobos (0.1.2): - GMPhobos (0.1.3):
- GMLibrary (~> 0.0.1) - GMLibrary (~> 0.0.1)
- TMCache (2.1.0) - TMCache (2.1.0)
...@@ -42,7 +42,7 @@ EXTERNAL SOURCES: ...@@ -42,7 +42,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60 AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
GMLibrary: c31039ad32bc93f866d6c3052c20acb8cf9c1568 GMLibrary: c31039ad32bc93f866d6c3052c20acb8cf9c1568
GMPhobos: efde929e7f1030e9e94e4ec3bf76c632e51ff78e GMPhobos: 108c768eeb11a9939eba447c287058eee18807b9
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
COCOAPODS: 0.39.0 COCOAPODS: 0.39.0
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
buildForArchiving = "YES"> buildForArchiving = "YES">
<BuildableReference <BuildableReference
BuildableIdentifier = 'primary' BuildableIdentifier = 'primary'
BlueprintIdentifier = '21F127F524A4A5E24D582BBA' BlueprintIdentifier = '816206F389808D619349BEC8'
BlueprintName = 'GMPhobos' BlueprintName = 'GMPhobos'
ReferencedContainer = 'container:Pods.xcodeproj' ReferencedContainer = 'container:Pods.xcodeproj'
BuildableName = 'GMPhobos.framework'> BuildableName = 'GMPhobos.framework'>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>0.1.2</string> <string>0.1.3</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "GMPhobos" s.name = "GMPhobos"
s.version = "0.1.2" s.version = "0.1.3"
s.summary = "GM statistic data sdk" s.summary = "GM statistic data sdk"
# This description is used to generate tags and improve search results. # This description is used to generate tags and improve search results.
...@@ -26,7 +26,7 @@ Pod::Spec.new do |s| ...@@ -26,7 +26,7 @@ Pod::Spec.new do |s|
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
s.license = 'MIT' s.license = 'MIT'
s.author = { "licong" => "licong@gmei.com" } s.author = { "licong" => "licong@gmei.com" }
s.source = { :git => "http://git.gengmei.cc/gengmeiios/GMPhobos.git", :tag => "0.1.2" } s.source = { :git => "http://git.gengmei.cc/gengmeiios/GMPhobos.git", :tag => "0.1.3" }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.platform = :ios, '7.0' s.platform = :ios, '7.0'
......
...@@ -87,4 +87,17 @@ ...@@ -87,4 +87,17 @@
*/ */
- (void)onPageEnd; - (void)onPageEnd;
/**
* @author 翟国钧, 16-03-08 11:03:45
*
* @brief 有些事件需要模拟pv事件,统一用该方法处理,in out 时间相同.点击一次即触发
*
* @param pageName 控件所在VC的pageName
* @param bid 业务id
* @param referer 上个月面的pagename
*
* @since 5.9.1
*/
- (void)simulativePageViewEventWithPageName:(NSString *)pageName BusinessId:(NSString *)bid referer:(NSString *)referer;
@end @end
...@@ -240,9 +240,27 @@ static NSString *sdkVersion = @"110"; ...@@ -240,9 +240,27 @@ static NSString *sdkVersion = @"110";
[dict setObject:_pageEnterParam[@"page_name"] forKey:@"page_name"]; [dict setObject:_pageEnterParam[@"page_name"] forKey:@"page_name"];
[dict setObject:_pageEnterParam[@"business_id"] forKey:@"business_id"]; [dict setObject:_pageEnterParam[@"business_id"] forKey:@"business_id"];
[dict setObject:_pageEnterParam[@"referer"] forKey:@"referer"]; [dict setObject:_pageEnterParam[@"referer"] forKey:@"referer"];
[dict setObject:@(NO) forKey:@"fake"]; [dict setObject:@(0) forKey:@"fake"];
[self track:@"pv" attributes:dict]; [self track:@"page_view" attributes:dict];
[_pageEnterParam removeAllObjects];
}
@catch (NSException *exception) {
phobosLog(exception);
}
}
- (void)simulativePageViewEventWithPageName:(NSString *)pageName BusinessId:(NSString *)bid referer:(NSString *)referer{
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
@try {
[dict setObject:[self currentTime] forKey:@"in"];
[dict setObject:[self currentTime] forKey:@"out"];
[dict setObject:pageName forKey:@"page_name"];
[dict setObject:bid forKey:@"business_id"];
[dict setObject:referer forKey:@"referer"];
[dict setObject:@(1) forKey:@"fake"];
[self track:@"page_view" attributes:dict];
[_pageEnterParam removeAllObjects]; [_pageEnterParam removeAllObjects];
} }
@catch (NSException *exception) { @catch (NSException *exception) {
......
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