mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
6b2daed903
[web] add additional event tracking GitOrigin-RevId: 877f92db41efff017db370ec75b8d1f861eed4f2
12 lines
364 B
JavaScript
12 lines
364 B
JavaScript
import { isMobileDevice, sendMB } from '@/infrastructure/event-tracking'
|
|
import getMeta from '@/utils/meta'
|
|
|
|
// record once per page load
|
|
let recorded = false
|
|
|
|
export function recordDocumentFirstChangeEvent() {
|
|
if (recorded) return
|
|
recorded = true
|
|
const projectId = getMeta('ol-project_id')
|
|
sendMB('document-first-change', { projectId, isMobileDevice })
|
|
}
|