Bachir Soussi Chiadmi 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
..
config 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
js 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
migration_templates 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
src 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
tests 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
.eslintrc 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
LICENSE.txt 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
README.txt 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
composer.json 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.info.yml 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.install 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.libraries.yml 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.links.menu.yml 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.links.task.yml 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.module 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.permissions.yml 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.routing.yml 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago
matomo.tokens.inc 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar 6 years ago

README.txt


Module: Matomo Analytics
Author: Alexander Hass


Description
===========
Adds the Matomo tracking system to your website.

Requirements
============

* Matomo installation
* Matomo website ID


Installation
============
* Copy the 'matomo' module directory in to your Drupal 'modules'
directory as usual.


Usage
=====
In the settings page enter your Matomo website ID.

All pages will now have the required JavaScript added to the
HTML footer can confirm this by viewing the page source from
your browser.

Page specific tracking
====================================================
The default is set to "Add to every page except the listed pages". By
default the following pages are listed for exclusion:

/admin
/admin/*
/batch
/node/add*
/node/*/*
/user/*/*

These defaults are changeable by the website administrator or any other
user with 'Administer Matomo' permission.

Like the blocks visibility settings in Drupal core, there is a choice for
"Add if the following PHP code returns TRUE." Sample PHP snippets that can be
used in this textarea can be found on the handbook page "Overview-approach to
block visibility" at http://drupal.org/node/64135.

Custom variables
=================
One example for custom variables tracking is the "User roles" tracking. Enter
the below configuration data into the custom variables settings form under
admin/config/system/matomo.

Slot: 1
Name: User roles
Value: [current-user:matomo-role-names]
Scope: Visitor

Slot: 1
Name: User ids
Value: [current-user:matomo-role-ids]
Scope: Visitor

More details about custom variables can be found in the Matomo API documentation
at http://matomo.org/docs/javascript-tracking/#toc-custom-variables.


Advanced Settings
=================
You can include additional JavaScript snippets in the custom javascript
code textarea. These can be found on various blog posts, or on the
official Matomo pages. Support is not provided for any customisations
you include.

To speed up page loading you may also cache the Matomo "piwik.js"
file locally.

Known issues
============
Drupal requirements (http://drupal.org/requirements) tell you to configure
PHP with "session.save_handler = user", but your Matomo installation may
not work with this configuration and gives you a server error 500.

1. You are able to workaround with the PHP default in your php.ini:

[Session]
session.save_handler = files

2. With Apache you may overwrite the PHP setting for the Matomo directory only.
If Matomo is installed in /matomo you are able to create a .htaccess file in
this directory with the below code:

# PHP 4, Apache 1.

php_value session.save_handler files


# PHP 4, Apache 2.

php_value session.save_handler files


# PHP 5, Apache 1 and 2.

php_value session.save_handler files