Widget:GoogleAnalyticsEventTracker

From Open Energy Information

This widget insert a pageTracker._trackEvent() call into the page. The tracker can be bound to a particular element by optionally passing in the element id. Otherwise, the tracker simply fires within the page (on document.ready()).

Parameters include:

  • id - the element id to bind the trackEvent to (optional)
  • event - the event to bind to (optional)
  • category - category to pass to trackEvent
  • action - action to pass to trackEvent
  • label - label to pass to trackEvent (optional)
  • value - value to pass to trackEvent (optional)