Repository navigation
4. Enabling Pyze Events & Custom Events
##Introduction Custom Events and are a critical part of deploying the Pyze Intelligence Platform. They provide deeper tracking of user activity and actions beyond the default metrics that are collected by Pyze. As users traverse different parts of your application, there are certain actions that are only specific to your application. For instance, tracking the number of pictures taken might be important for a photography app, the number of messages sent for a messaging app, or the number of levels played for a game. Tracking these events will provide you with a better understanding of usage patterns and are also used to create funnels to identify drop offs points and conversions of goals.
##Best Practices
When to use events It’s important to be thoughtful about which events should be tracked. Tracking too many events can be overwhelming so only critical events that provide insight into user behavior or actions that help separate different types of users should be tracked. Pyze provides a number of pre-defined event types that can help you get started and you can add your own custom events.
##Event Naming Event names should be as succinct as possible and describe the action that the user has just executed. For instance, events may be labeled as Video Viewed, Video Shared, Video Deleted.
##Using Attributes Attributes are an excellent want to capture key data points associated with an event. The attribute could be meta-data associated with an event such as the genre of the article for an “Article Read” event or how long it took the user to read the article.
##What Not to Track It’s important to only track events that will be useful for later analysis. It’s also better to send one event after an action completes rather than sending multiple events for start or end of an action. Attributes can be used to add metadata to an event. Its also not a good idea to call events for actions that are called recursively or in a loop which may result in large volumes of events being fired.