Track key events

This commit is contained in:
Ben Grant 2021-04-12 13:27:23 +10:00
parent 1b40a5919b
commit 003f4e811a
3 changed files with 11 additions and 2 deletions

View file

@ -131,6 +131,9 @@ const Home = () => {
},
});
push(`/${response.data.id}`);
gtag('event', 'create_event', {
'event_category': 'home',
});
} catch (e) {
setError('An error ocurred while creating the event. Please try again later.');
console.error(e);