By enabling and configuring this plugin with an Analytics account, such as Appcues, Mixpanel, Keen, Segment, Google or AWS Kinesis, admin users will be able to track different usage information from their sites.
Some of the usage information you can track is:
- User information – Encrypted, can track where the user is connecting from, with which type of device, roles, etc.
- Specific events – Such as login, course entered, activity entered, etc.
- Plugin usage – Which active plugins on your platform are being used.
Currently, the Liquidus plugin allows any admin user to configure it for getting usage info.
This plugin was contributed by the Open LMS Product Development team. Open LMS is an education technology company dedicated to bringing excellent online teaching to institutions across the globe. We serve colleges and universities, schools and organizations by supporting the software that educators use to manage and deliver instructional content to learners in virtual classrooms.
Extract the contents of the plugin into /wwwroot/local then visit admin/upgrade.php
or use the CLI script to upgrade your site.
- Install this as you would any Moodle plugin and configure the analytics provider data.
- Setup a Google analytics account and property.
- Enable Liquidus plugin in Site administration › Plugins › Local plugins › Liquidus.
- Enable the Google tracking on the same setting page
- Copy the property ID from your Google Analytics account, so you can track the page, and Add the property ID to the local_liquidus settings form.
- Save the form.
Check your Google Analytics dashboard to see the influx of events being sent by the plugin.
- Setup a Mixpanel account and create a Project.
- Enable Liquidus plugin in Site administration › Plugins › Local plugins › Liquidus.
- Enable Mixpanel tracking on the same setting page.
- Copy the Mixpanel Project token into the
mixpaneltoken
setting in the settings page. - Customize the data that will be shared and the users that will be tracked in the Mixpanel settings.
- Save the form.
Check your Mixpanel events dashboard to see the influx of events being sent by the plugin.
This is a flag for internal use in Open LMS. It is used to set the plugin settings from the flags instead of the
ones set in the database. To initialize it, we need to set the flag as the following:
$CFG->local_liquidus_olms_cfg = new \stdClass();
. Then we can set any of the settings for each provider in the
following way: $CFG->local_liquidus_olms_cfg->mixpanel_trackadmin = true
. In that example, we are enabling the
"Tracking Admins" in Mixpanel using the flag. This setting will not be visible in the plugin settings page and will
be used instead of the values saved in the database.
This flag is set as an object:
$CFG->block_conduit_adhoc_consume_capacity = new \stdClass();
to initialize the object.$CFG->local_liquidus_olms_cfg-><provider_setting_name> = true
to overwrite a provider config using the flag.$CFG->local_liquidus_olms_cfg: unset
the settings will be taken from the plugin settings page.
Use this flag to hide the providers settings in the plugin settings page. With this flag enabled, only the consent
checkbox will be visible. That consent checkbox will allow the providers that are defined in the flag
local_liquidus_trackers_require_consent
to track the events in the site. If that checkbox is not enabled, then the
providers defined in local_liquidus_trackers_require_consent
will not work because those require user consent to track
the events.
This flag is set as a boolean:
$CFG->local_liquidus_disable_tracker_config = true;
to hide the provider settings from the settings page.$CFG->local_liquidus_disable_tracker_config = false;
to show the provider settings from the settings page.$CFG->local_liquidus_disable_tracker_config: unset
to show the provider settings from the settings page.
Use this flag to define which providers can share identifiable data of user (e.g. user email).
This flag is set as an array of strings:
$CFG->local_liquidus_identifiable_share_providers = ['appcues'];
Appcues will receive identifiable data of user.$CFG->local_liquidus_identifiable_share_providers: unset
no provider will receive identifiable data of user.
Enable the Custom Event Definition setting in each provider.
This flag is set as a boolean:
$CFG->local_liquidus_enable_eventdef = true;
the Custom Event Definition setting will be displayed in each provider settings page.$CFG->local_liquidus_enable_eventdef = false;
the Custom Event Definition setting will not be displayed in each provider settings page.$CFG->local_liquidus_enable_eventdef: unset
the Custom Event Definition setting will not be displayed in each provider settings page.
Flag to set the user properties to send to Appcues, as a comma-separated string of user properties, possible values are listed here.
This flag is set as a string separated by commas:
$CFG->local_liquidus_appcues_user_properties_to_send = "issupportuser,olmsproduct,isimpersonated";
this will send the properties "issupportuser", "olmsproduct" and "isimpersonated" to Appcues.$CFG->local_liquidus_appcues_user_properties_to_send: unset
The properties defined in theappcues_unidentifiable_staticshares
will be sent to Appcues.
This flag is used to disable the support users tracking.
This flag is set as a boolean:
$CFG->local_liquidus_disable_support_user_domain_tracking = true;
the support users will not be tracked.$CFG->local_liquidus_disable_support_user_domain_tracking = false;
the support users will be tracked.$CFG->local_liquidus_disable_support_user_domain_tracking: unset
the support users will be tracked.
The different forms in the site are tracked when the providers are enabled to do so using the provider settings. With this flag we can skip specific forms to be tracked. The given value can be the id of the body page in which the form is rendered or the URL of the page where the form is located.
This flag is set as an array of strings:
$CFG->local_liquidus_skip_forms_track = ['mod-assign-grader', '/local/joulegrader/view.php'];
this skips the forms that are located in the page with body id of 'mod-assign-grader' and the forms that are in the page with URL '/local/joulegrader/view.php'.$CFG->local_liquidus_skip_forms_track: unset
No forms will be skipped from tracking.
This flag will define the value that will be sent in the olmsPlatform
static share to the providers.
This flag is set as a string:
$CFG->local_liquidus_site_olms_platform = “Platform name example”;
The value “Platform name example” will be sent in theolmsPlatform
static share.$CFG->local_liquidus_site_olms_platform: unset
The value “Not defined” will be sent in theolmsPlatform
static share.
This flag is used to set the support user domain. This can be used along with the local_liquidus_disable_support_user_domain_tracking
flag to disable or enable the support user tracking.
This flag is set as an array of strings:
$CFG->local_liquidus_olms_support_user_domains = ["support@example.net"];
the user with the domainsupport@example.net
will be set as the support user.$CFG->local_liquidus_olms_support_user_domains: unset
no user will be set as the support user based on the user domain.
This flag is used to set the support user authentication types. This can be used along with the local_liquidus_disable_support_user_domain_tracking
flag to disable or enable the support user tracking.
This flag is set as an array of strings:
$CFG->local_liquidus_olms_support_user_auth_types = ['manual', 'email'];
the user with the authentication methodmanual
oremail
will be set as the support user.$CFG->local_liquidus_olms_support_user_auth_types: unset
no user will be set as the support user based on the authentication method.
This defines which providers will require the consent checkbox to be used. If a provider is declared in this flag,
the user will require to manually give consent by enabling Liquidus from the plugin settings using the
local_liquidus | enabled
setting. Otherwise, that provider will not track any events, even if the provier settings are
enabled.
This flag is set as an array of strings:
$CFG->local_liquidus_trackers_require_consent = ['mixpanel'];
Mixpanel will only work of thelocal_liquidus | enabled
setting is enabled from the plugin settings page.$CFG->local_liquidus_trackers_require_consent: unset
No provider will require thelocal_liquidus | enabled
setting to be enabled from the plugin settings page to work.
Copyright (c) 2021 Open LMS (https://www.openlms.net)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.