For MealSpotter, we use Google Analytics Events to help us better understand how well Deals are performing, and bring that insight to our restaurant partners. Ensuring that our analytics data are clean helps us to work with our partners to bring even better deals to our users. This post will go into how to define an Events schema using Typescript, using a simplified example of the method we use at MealSpotter.