feat(analytics): Google Analytics・同意モード・一部機能のトラッキング実装 (MisskeyIO#784)
This commit is contained in:
parent
2f4c48bbe6
commit
fcfd004c38
53 changed files with 805 additions and 113 deletions
14
packages/frontend/@types/vue-gtag.d.ts
vendored
Normal file
14
packages/frontend/@types/vue-gtag.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
declare module 'vue-gtag' {
|
||||
export type GtagConsent = (command: 'consent', arg: 'default' | 'update', params: GtagConsentParams): void;
|
||||
|
||||
export interface GtagConsentParams {
|
||||
ad_storage?: 'granted' | 'denied',
|
||||
ad_user_data?: 'granted' | 'denied',
|
||||
ad_personalization?: 'granted' | 'denied',
|
||||
analytics_storage?: 'granted' | 'denied',
|
||||
functionality_storage?: 'granted' | 'denied',
|
||||
personalization_storage?: 'granted' | 'denied',
|
||||
security_storage?: 'granted' | 'denied',
|
||||
wait_for_update?: number
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue