Class: GAEvent
Defined in: | vendor/assets/javascripts/plinth/plugins/tbg-ga-events.js.coffee |
Overview
GAEVENT CLASS DEFINITION
Examples:
How to use with Haml
%a{ :href => '/some/link', :class => 'btn', :data => { :gaevent => 'category|action|opt_label|opt_value|opt_noninteraction' } }
# See: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
How to ensure plugin self initialises on element
<form data-gaevent-load="true"> ... </form>
Instance Method Summary
- - (void) constructor(element, eventcontent) Constructor Construct a GAEvent instance - split the event content string and pass to sendEvent
- - (void) sendEvent(data) Send the event to Google Analytics
Constructor Details
- (void) constructor(element, eventcontent)
Construct a GAEvent instance - split the event content string and pass to sendEvent
Instance Method Details
- (void) sendEvent(data)
Send the event to Google Analytics