|
@@ -369,12 +369,18 @@ class KMAIOpenPDFFilesVC: NSViewController {
|
|
|
let tag = sender.tag;
|
|
|
if tag == 0 {
|
|
|
// New From Files
|
|
|
+ self.trackEvent_create(eventName: "New From File")
|
|
|
+
|
|
|
self.openSupportPDFButtonAction()
|
|
|
} else if tag == 1 {
|
|
|
// New Blank Page
|
|
|
+ self.trackEvent_create(eventName: "New Blank Page")
|
|
|
+
|
|
|
self.openBlankPage("")
|
|
|
} else if tag == 2 {
|
|
|
// Import From Scanner
|
|
|
+ self.trackEvent_create(eventName: "Import From Scanner")
|
|
|
+
|
|
|
self.importFromScanner("")
|
|
|
}
|
|
|
}
|
|
@@ -488,3 +494,13 @@ class KMAIOpenPDFFilesVC: NSViewController {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+// MARK: - Analytics (埋点)
|
|
|
+
|
|
|
+extension KMAIOpenPDFFilesVC {
|
|
|
+ func trackEvent_create(eventName: String) -> Void {
|
|
|
+ KMAnalytics.trackEvent(eventName: eventName, parameters: [
|
|
|
+ KMAnalytics.Parameter.categoryKey : KMAnalytics.Category.home,
|
|
|
+ KMAnalytics.Parameter.labelKey : KMAnalytics.Label.create_Btn], platform: .AppCenter, appTarget: .dmg)
|
|
|
+ }
|
|
|
+}
|