Code Monkey home page Code Monkey logo

analytics's Introduction

Analytics

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.

Contents

  1. Credits

  2. Tracking of actions

  3. Tracking of events

  4. Flag admins

  5. Credits


Release 1.3

Funding

Testing and feedback

  1. 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

FOR DEVELOPERS

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.

  1. 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.

FOR DEVELOPERS

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.

  1. 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

analytics's People

Contributors

jeabakker avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.