Remove analytics events for load shared/unshared

This is now tracked server-side
This commit is contained in:
Thomas Weber committed 2021-01-03 16:45:04 -06:00
1 parent 1c2870144e
commit 3bff38c0fd
1 file changed
-3
-3
View File
@@ -5,7 +5,6 @@ import log from './log';
import {setProjectTitle} from '../reducers/project-title';
import {setAuthor, setDescription} from '../reducers/tw';
import analytics from './analytics';
const API_URL = 'https://trampoline.turbowarp.org/proxy/projects/$id';
@@ -56,10 +55,8 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) {
if (instructions || credits) {
this.props.onSetDescription(instructions, credits);
}
analytics.twEvent('Load Shared');
})
.catch(err => {
analytics.twEvent('Load Unshared');
log.warn('cannot fetch project meta', err);
});
}