Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBen Burgess <88810029+bx80@users.noreply.github.com>2021-09-03 12:41:12 +0300
committerGitHub <noreply@github.com>2021-09-03 12:41:12 +0300
commit7e0b0e602068a558a84f1e16fde5e7e6cb0b7fa4 (patch)
tree06ba97362c2ffaf5c68b675c2680c12e8fb60561 /config
parent627c9e6484d0dc3819c32d2ee05bcb010bcc9982 (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-xconfig/global.ini.php6
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