(name: string, properties?: TrackProperties)
| 18 | }; |
| 19 | |
| 20 | const trackServer = (name: string, properties?: TrackProperties) => { |
| 21 | const op = getClient(); |
| 22 | if (!op) return; |
| 23 | op.track(name, properties).catch(() => { |
| 24 | /* swallow analytics errors */ |
| 25 | }); |
| 26 | }; |
| 27 | |
| 28 | const SERVER_EVENT = { |
| 29 | MARKDOWN_VIEW: "markdown-view", |