xref: /plugin/numatomo/conf/metadata.php (revision b84896fafdfa9126f434d83604c98ea888401874)
1<?php
2/**
3 * Configuration settings for the Nu Matomo Plugin
4 *
5 * @author     Sascha Leib <ad@hominem.info>
6 */
7
8 /* Server address (e.g. "/analytics/", or "https://analytics.example.com/") */
9$meta['server']      = array('string');
10
11 /* Site ID (e.g. "1") */
12$meta['siteid']	= array('numeric', '_min'=> 1);
13
14/* Instance name (e.g. "matomo") */
15$meta['instance']	= array('string');
16
17/* Special treatments */
18$meta['exclude']  = array('multichoice', '_choices' => array(
19	'none', 'users', 'admins'
20));
21
22/* Features group */
23$meta['_features'] = array('fieldset');
24
25/* Feature flags */
26$meta['feature-flags']  = array('multicheckbox', '_choices' => array(
27	'enableLinkTracking', 'trackAllContentImpressions',
28	'requireConsent', 'rememberConsentGiven',
29	'requireCookieConsent','rememberCookieConsentGiven',
30	'enableHeartBeatTimer'
31), '_other' => 'never');
32
33/* Honour the DoNotTrack header */
34$meta['donottrack'] = array('onoff');