overleaf/services/web/frontend/js/features/event-tracking/document-first-change-event.js
David 7e11e8a62d Merge pull request #16608 from overleaf/jpa-writefull-double-loaded
[web] add event for Writefull extension and Overleaf integration enabled

GitOrigin-RevId: d8e65c2f5a868a3221e2dc1765d8ea9986ceff43
2024-01-24 09:03:47 +00:00

10 lines
305 B
JavaScript

import {
isSmallDevice,
sendMBOncePerPageLoad,
} from '@/infrastructure/event-tracking'
import getMeta from '@/utils/meta'
export function recordDocumentFirstChangeEvent() {
const projectId = getMeta('ol-project_id')
sendMBOncePerPageLoad('document-first-change', { projectId, isSmallDevice })
}