mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 15:37:21 +08:00
✨ Feature: add baidu tongji for analytics
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
export const SHOW_INPUT_BOX = 'SHOW_INPUT_BOX'
|
||||
export const SHOW_INPUT_BOX_RESPONSE = 'SHOW_INPUT_BOX_RESPONSE'
|
||||
export const TOGGLE_SHORTKEY_MODIFIED_MODE = 'TOGGLE_SHORTKEY_MODIFIED_MODE'
|
||||
export const BAIDU_TONGJI_INIT = 'BAIDU_TONDJI_INIT'
|
||||
export const BAIDU_TONGJI_INIT_RES = 'BAIDU_TONDJI_INIT_RES'
|
||||
export const BAIDU_TONGJI_CODE = '19a7ebdbb87f2403773c7ab0cae16d21'
|
||||
export const BAIDU_TONGJI_EVENT = 'BAIDU_TONGJI_EVENT'
|
||||
|
||||
Vendored
+4
@@ -10,4 +10,8 @@ declare global {
|
||||
[elem: string]: any
|
||||
}
|
||||
}
|
||||
|
||||
interface Window {
|
||||
_hmt: any[]
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+16
@@ -295,3 +295,19 @@ interface IAppNotification {
|
||||
body: string
|
||||
icon?: string
|
||||
}
|
||||
|
||||
interface IBaiduTongJiOptions {
|
||||
category: string
|
||||
action: string
|
||||
// eslint-disable-next-line camelcase
|
||||
opt_label?: string
|
||||
// eslint-disable-next-line camelcase
|
||||
opt_value?: number
|
||||
}
|
||||
|
||||
interface IAnalyticsData {
|
||||
fromClipboard: boolean
|
||||
type: string
|
||||
count: number
|
||||
duration?: number // 耗时
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user