File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import log from './log'
99import { timestamp } from '../common/utils'
1010import { me as companion } from 'companion'
1111import { device , app } from 'peer'
12- import { GA4_MEASUREMENT_ID , GA4_MEASUREMENT_API_SECRET } from '../resources/config'
12+ import { GA4_MEASUREMENT_ID , GA4_MEASUREMENT_API_SECRET , VERSION } from '../resources/config'
1313import { inbox } from 'file-transfer'
1414import {
1515 sendDataToApp ,
@@ -30,6 +30,18 @@ ga.configure({
3030 autoFileTransferProcessing : false ,
3131 debug : false ,
3232} )
33+ const deviceInfo = getDeviceInfo ( )
34+ deviceInfo . appVersion = VERSION
35+ ga . setUserProperties ( {
36+ appVersion : VERSION ,
37+ osName : deviceInfo . osName ,
38+ osVersion : deviceInfo . osVersion ,
39+ modelName : deviceInfo . modelName ,
40+ } )
41+ ga . send ( {
42+ name : 'device_info' ,
43+ params : deviceInfo ,
44+ } )
3345
3446function getDeviceInfo ( ) {
3547 return {
You can’t perform that action at this time.
0 commit comments