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

Method trackEvent

app/core/Tracker2/index.js:131–146  ·  view source on GitHub ↗
(action, properties = {})

Source from the content-addressed store, hash-verified

129 }
130
131 async trackEvent (action, properties = {}) {
132 try {
133 await this.initializationComplete
134 const result = await allSettled(
135 this.trackers.map(t => t.trackEvent(action, properties))
136 )
137 if (Array.isArray(result)) {
138 result.forEach((r) => {
139 if (r.status === 'rejected')
140 console.error('trackEvent failed', r)
141 })
142 }
143 } catch (e) {
144 this.log('trackEvent call failed', e)
145 }
146 }
147
148 async trackTiming (duration, category, variable, label) {
149 try {

Callers 15

mountedFunction · 0.45
trackEventFunction · 0.45
recordMethod · 0.45
stopTimerMethod · 0.45
trackFirstArrivalFunction · 0.45
fetchDataFunction · 0.45
fetchDataByComponentFunction · 0.45
exportStudentProgressFunction · 0.45
homePageEventMethod · 0.45
onClickBuyMethod · 0.45
homePageEventMethod · 0.45

Calls 2

logMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected