_ga._trackEvent(category, action, opt_label, opt_value)
Or a real life example of this, might be on a FAQ screen, clicking the link to an anchored section of the page:
_ga._trackEvent('faq', 'anchor click', $(this))
But events by their sheer nature give a bit more flexibility with that value field. In the case of a user sending a message you might be able to track how many recipients it has, or any other numeric value you want to track.
Events overall are great, but you’re limited to the set Google Analytics report to know whats happening with them. So much of Google Analytics is based around page views, fortunately Google makes it easy to entirely fake a page view. If you’re wondering why you’d care whether it’s a page view versus events, we’ll get to that in a later post. For now what’s important to know is that you can fake any page view with:
While seemingly small tweaks and extra additions these two items will create massive value for what you can actually do with Google Analytics. Stayed tuned later for how you use these with the base Google Analytics to actually get the value.