mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-17 13:03:46 +00:00
Send fewer analytics events because they're not really sent
This commit is contained in:
12
src/app.tsx
12
src/app.tsx
@@ -93,14 +93,12 @@ export class App extends React.Component<RouteComponentProps, {}> {
|
|||||||
const data = hash
|
const data = hash
|
||||||
? await loadGedcom(hash, gedcom, images)
|
? await loadGedcom(hash, gedcom, images)
|
||||||
: await loadFromUrl(url!, handleCors);
|
: await loadFromUrl(url!, handleCors);
|
||||||
analyticsEvent(hash ? 'upload_file_loaded' : 'url_file_loaded');
|
|
||||||
if (images && images.size) {
|
|
||||||
analyticsEvent('images_uploaded');
|
|
||||||
}
|
|
||||||
const software = getSoftware(data.gedcom.head);
|
const software = getSoftware(data.gedcom.head);
|
||||||
if (software) {
|
analyticsEvent(hash ? 'upload_file_loaded' : 'url_file_loaded', {
|
||||||
analyticsEvent('gedcom_software', {event_label: software});
|
event_label: software,
|
||||||
}
|
event_value: (images && images.size) || 0,
|
||||||
|
});
|
||||||
|
|
||||||
// Set state with data.
|
// Set state with data.
|
||||||
this.setState(
|
this.setState(
|
||||||
|
|||||||
Reference in New Issue
Block a user