Track the usage of your site by Google Analytics and/or Piwik
Release 1.3
It is possible to track Actions and Events of the Elgg system. Tracking can be enabled in the plugin settings
Release 2.1
The plugin name changed to Analytics, as we now support both Google Analytics and Piwik analytics tracking.
-
Credits
-
Tracking of actions
-
Tracking of events
-
Flag admins
-
Credits
Funding
- Oxfam Novib for Doenersnet
Testing and feedback
- Jules Stuifbergen, Web Analytics Expert http://forwardslash.nl/elgg
- Tracking of Actions
All Actions of the Elgg system can be tracked and reported to Google Analytics as an extra pageview. An example of an action would be /action/login if this succeeds then a pageview /action/login/success is reported to Google Analytics. If it fails a pageview /action/login/failed will be reported to Google Analytics.
With this extra information it is possible to create and track conversions
There is a plugin hook to prevent the tracking of actions: trigger_plugin_hook("track_action", "analytics", array("action" => $action)). If you return false on this hook the action will not be tracked.
- Tracking events
All events of the Elgg system can be tracked an reported to Google Analytics as an event. An example would be the creation of an user which will be reported as _trackEvent('user', 'create', '')
With this extra information it is possible to further follow the usage of your site.
There is a plugin hook to prevent the tracking of events: trigger_plugin_hook("track_event", "analytics", array("category" => $category, "action" => $action, "label" => $label)) If you return false on this hook the action will not be tracked.
- Flag admins
It is possible to set some extra tracking data in case of an adminitrator. This will allow you to filter the administrators out of your site usage or do other stuff.
When enabled an administrator will be flagged with a customVar 'role' which will be set to 'admin' = 1