Remove paywall-prompt event tracking from compile controller (#6241)

GitOrigin-RevId: cab36fd1f2a79166c39b801a29155f1ef64edc00
This commit is contained in:
Alf Eaton
2022-01-10 13:59:22 +00:00
committed by Copybot
parent 5b560ad8ab
commit 341d012cea
2 changed files with 5 additions and 8 deletions

View File

@@ -100,6 +100,10 @@ export default class DocumentCompiler {
const compileTimeClientE2E = performance.now() - t0
const { firstRenderDone } = trackPdfDownload(data, compileTimeClientE2E)
this.setFirstRenderDone(() => firstRenderDone)
// unset the error before it's set again later, so that components are recreated and events are tracked
this.setError(undefined)
data.options = options
if (data.clsiServerId) {
this.clsiServerId = data.clsiServerId

View File

@@ -12,11 +12,7 @@ import useScopeValueSetterOnly from '../hooks/use-scope-value-setter-only'
import usePersistedState from '../hooks/use-persisted-state'
import useAbortController from '../hooks/use-abort-controller'
import DocumentCompiler from '../../features/pdf-preview/util/compiler'
import {
send,
sendMB,
sendMBSampled,
} from '../../infrastructure/event-tracking'
import { send, sendMBSampled } from '../../infrastructure/event-tracking'
import {
buildLogEntryAnnotations,
handleOutputFiles,
@@ -273,9 +269,6 @@ export function CompileProvider({ children }) {
'editor-click-feature',
'compile-timeout'
)
sendMB('paywall-prompt', {
'paywall-type': 'compile-timeout',
})
}
break