Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function track(event: string, options?: TrackingOptions): void {
initialize();
const properties = normalizeTrackingOptions(options);
if (properties) {
Amplitude.logEventWithProperties(event, properties);
} else {
Amplitude.logEvent(event);
}
}
render() {
if (!this.state.isLoadingComplete) {
return (
this.setState({ isLoadingComplete: true })}
/>
);
}
Amplitude.logEvent("OpenApp");
return (
);
}
}