MCPcopy Create free account
hub / github.com/codecombat/codecombat / trackTiming

Method trackTiming

app/core/Tracker2/index.js:148–158  ·  view source on GitHub ↗
(duration, category, variable, label)

Source from the content-addressed store, hash-verified

146 }
147
148 async trackTiming (duration, category, variable, label) {
149 try {
150 await this.initializationComplete
151
152 await allSettled(
153 this.trackers.map(t => t.trackTiming(duration, category, variable, label))
154 )
155 } catch (e) {
156 this.log('trackTiming call failed', e)
157 }
158 }
159
160 identifyAfterNextPageLoad () {
161 window.sessionStorage.setItem(SESSION_STORAGE_IDENTIFY_ON_NEXT_PAGE_LOAD, 'true')

Callers 4

destroyMethod · 0.45
trackLevelLoadEndMethod · 0.45
onShowVictoryMethod · 0.45

Calls 1

logMethod · 0.80

Tested by

no test coverage detected