public function GoogleAnalyticsEventTracker::getDomEvents in Google Analytics Event Tracking 8
Same name and namespace in other branches
- 8.2 src/Entity/GoogleAnalyticsEventTracker.php \Drupal\google_analytics_et\Entity\GoogleAnalyticsEventTracker::getDomEvents()
Returns the list of DOM events supported by this tracker.
Return value
array
Overrides GoogleAnalyticsEventTrackerInterface::getDomEvents
File
- src/
Entity/ GoogleAnalyticsEventTracker.php, line 132
Class
- GoogleAnalyticsEventTracker
- Defines the Google Analytics event tracker entity.
Namespace
Drupal\google_analytics_et\EntityCode
public function getDomEvents() {
return [
'click' => 'click',
'dblclick' => 'dblclick',
'mousedown' => 'mousedown',
'mouseup' => 'mouseup',
'mouseover' => 'mouseover',
'mousemove' => 'mousemove',
'mouseout' => 'mouseout',
'keydown' => 'keydown',
'keypress' => 'keypress',
'keyup' => 'keyup',
'select' => 'select',
'change' => 'change',
'submit' => 'submit',
'reset' => 'reset',
'focus' => 'focus',
'scroll' => 'scroll',
'blur' => 'blur',
];
}