Adds analytics tracking code (by Google or Piwik) to all Elgg pages
Track the usage of your site by Google Analytics
Tracking of actions
Tracking of events
- Oxfam Novib for Doenersnet
- Testing and feedback
- Jules Stuifbergen, Web Analytics Expert http://forwardslash.nl/elgg
- Important updates
- It is possible to track Actions and Events of the Elgg system.
- Tracking can be enabled in the plugin settings
- The plugin name changed to Analytics, as we now support both Google Analytics and Piwik analytics tracking.
- Updated to the Google Universal Analytics tracking.
** Version 4.0**
- Removed Piwik Support
- 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