diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-08-18 09:27:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 09:27:07 +0300 |
commit | 17ec9004f99b6f7092740558bca71cca6c1ac23c (patch) | |
tree | c583444ac5e163641ac80ac185a8bec40824699c /config | |
parent | b5dd5fbdeaf855b55c2817352d5654d8aca0c64b (diff) |
Add feature to exclude tracking requests via config file (#16302)
Diffstat (limited to 'config')
-rwxr-xr-x | config/global.ini.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/global.ini.php b/config/global.ini.php index 3103fbd4f0..589f0257e2 100755 --- a/config/global.ini.php +++ b/config/global.ini.php @@ -903,6 +903,17 @@ enable_spam_filter = 1 ; requests may be discarded due to too low lock wait time. innodb_lock_wait_timeout = 0 +; Allows you to exclude specific requests from being tracked. The definition is similar to segments. +; The following operands are supported: Equals: `==`, Not equals: `!=`, Contains: `=@`, Not Contains: `!@`, Starts with: `=^`, Ends with: `=$`. +; The structure is as following: {tracking parameter}{operand}{value to match}. +; For example "e_c==Media" means that all tracking requests will be excluded where the event category is Media. +; Multiple exclusions can be configured separated by a comma. The request will be excluded if any expressions matches (not all of them). For example: "e_c==Media,action_name=@privacy". +; This would also exclude any request from being tracked where the page title contains privacy. +; All comparisons are performed case insensitve. The value to match on the right side should be URL encoded. +; For example: "action_name=^foo%2Cbar" would exclude page titles that start with "foo,bar". +; For a list of tracking parameters you can use on the left side view https://developer.matomo.org/api-reference/tracking-api +exclude_requests = "" + [Segments] ; Reports with segmentation in API requests are processed in real time. ; On high traffic websites it is recommended to pre-process the data |