(action, properties = {})
| 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 { |
no test coverage detected