diff options
author | Ben Burgess <88810029+bx80@users.noreply.github.com> | 2021-09-03 12:41:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 12:41:12 +0300 |
commit | 7e0b0e602068a558a84f1e16fde5e7e6cb0b7fa4 (patch) | |
tree | 06ba97362c2ffaf5c68b675c2680c12e8fb60561 /config | |
parent | 627c9e6484d0dc3819c32d2ee05bcb010bcc9982 (diff) |
Added config option for custom tracking image (#17879)
* Added config option for custom tracking image
* Update core/Tracker/Response.php
Improved brevity
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update core/Tracker/Response.php
Improved brevity
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update tests/PHPUnit/Unit/Tracker/ResponseTest.php
Remove unnecessary debug comment
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Added restricted list of supported mime types, automatically determine mime type for image strings, switched to using file_get_contents, is_file and is_readable for image file loading
* Removed image recreation due to performance limitations
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'config')
-rwxr-xr-x | config/global.ini.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/global.ini.php b/config/global.ini.php index 8a353e6861..e0c7cb3829 100755 --- a/config/global.ini.php +++ b/config/global.ini.php @@ -1008,6 +1008,12 @@ innodb_lock_wait_timeout = 0 ; For a list of tracking parameters you can use on the left side view https://developer.matomo.org/api-reference/tracking-api exclude_requests = "" +; Custom image to return when tracker URL includes &image=1 +; Overrides the default 1x1 transparent gif +; This should either be the full path to the image file or a base64 encoded image string wrapped in quotes +; For both image files and base64 encoded strings supported image types are gif, jpg and png +custom_image = + [Segments] ; Reports with segmentation in API requests are processed in real time. ; On high traffic websites it is recommended to pre-process the data |