< All Topics

How to change the tracking image

When using an image beacon for tracking, our system by default serves an transparent 1×1 GIF image.

As of version 4.5.0 it is possible to serve a custom image instead. To do this the config needs to be adjusted.

You can specify an image either by providing an absolute file path to your image, or by directly configuring a Base64 encoded image. Supported file formats are GIF, JPEG and PNG.

custom_image = ""



If the configured image does not exist or has an unsupported format, Matomo will fall back to serve the transparent GIF instead. Configuring a broken Base64 image string will result in serving a broken image.
To test if your custom image is served correctly, you can simply open your tracking url in the browser, e.g.

0 Reviews ( 0 out of 0 )

Write a Review

Previous How do I use variables within the Custom HTML tag?
Next How to Get M-PESA Keys
Table of Contents