How to activate Google analytics?

Starting from Beta 2, you can activate Google analytics and optionally track the behaviour of the different users on the system. It is interresting if you want to know how is Jorani used by your employees.

Please note that there is no need to modify the code. By changing the configuration of Jorani as explained into this article, Google Analytics Javascript code will be automatically injected into the pages of the application.

Create a Google Analytics account/view

First step is to create a Google Analytics account or a view (see Google Help Center).

Optionally, you can track the activity of your employees by sending the user-id to Google Analytics. It will help you to filter the different views in Google Analytics. This is a feature that must be enabled first into you GA account (see GA help center)

Configuring Jorani

Locate the file application/config/config.php in your installation of Jorani and change the default configuration by inserting your google analytics account. for example, change this default configuration:

$config['ga_code'] = '';

By adding your account number:

$config['ga_code'] = 'UA-51100510-2';

Configuring Jorani with user-ID property

Locate the file application/config/config.php in your installation of Jorani and change the default value of the ga_send_userid variable from FALSE to TRUE :

$config['ga_send_userid'] = TRUE;

A note on Site Speed metric

Google Analytics doesn't record the Page Timing for all the visits and all the pages. It only records some samples. This behaviour has nothing to do with the Jorani project but it is a limitation of Google Analytics.

Going further

If you want to use a complete APM (Application Performance Management) solution so as to analyze the different business transactions, the availability, the server and browser time, etc. Please note that Jorani has been succesfully tested with New Relic.

In order to use New Relic, you must deploy the monitoring tools on your server and restart the Apache or FPM-PHP service running Jorani. But there is no need to modify Jorani configuration or its PHP code.

  • Using new relic APM tool with Jorani

    Using new relic APM tool with Jorani

Tags :    feature 

You may also like

How to modify and create users?

HR officer and manager can manage the list of users of the Jorani application.   Read »

Personnal Leave Balance report

View your individual leave counters. How many days are entitled to you and how many you've taken.   Read »

Set the entitled days for an employee

In Jorani, we can allocate time off credits at the level of a contract: all employees attached to this contract will be impacted by this allocation.   Read »

Login to Jorani application

Once your account has been created, you can login to the application. This article explains how to solve connection problems.   Read »

Audit the leave requests of your employees

If you use LMS in order to prepare the payroll, as with a paper-based process, you need to regularly audit the leave requests of your employees.   Read »

comments powered by Disqus