PRODUCTS, KNOWLEDGE-BASE AND FAQs ENGINE
-
ABOUT US
-
ACCOUNTS
-
AD CENTER (LISITNGS)
- Updating..
-
ANALYTICS
- Annotations
- Create and analyse custom reports
- Create and edit annotations
- Create Dashboards and customise widgets and layout
- Creating a Goal
- Dashboard Configuration
- Data selectors
- DNS Records Explained - Domain Name System Management
- Email Reports
- Getting Started
- Graphs and visualisations
- How do I find the website ID, also called idSite or Site ID?
- How to change the tracking image
- How to Customise Your Dashboard Layout
- How to Manage Existing Widgets
- HOW TO SETUP 2 SUB ENTITIES
- KPI Metric Widget
- Managing Goals
- Set up and analyse Multi Channel Conversion Attribution reports
- The Annotations API
- Using the page overlay feature
- What is a Tag Manager?
- What is the token_auth and where can I find this token to use in the API calls?
- Why is the Bounce Rate in Custom Reports different to Bounce Rate in the Pages report?
- Show all articles (9) Collapse Articles
-
API
- DNS Records Explained - Domain Name System Management
- How do I find the website ID, also called idSite or Site ID?
- How do I use variables within the Custom HTML tag?
- How to change the tracking image
- How to Get M-PESA Keys
- SAFARICOM LIPA NA MPESA APPLICATION SIMPLIFIED
- What is the token_auth and where can I find this token to use in the API calls?
-
BLOG (OUR RESOURCE CENTER)
-
BULK SMS
- Updating..
-
CLOUD DRIVE
- Updating..
-
CYBERSPACE
- Updating..
-
DONATIONS
- Updating..
-
ECOMMERCE-MARKET PLACE
-
EMAILS AND SMTP
-
EPSON
-
IBMS HOSTING
-
Kenya Revenue Authority
-
MPESA
-
NESTICT ICLOUD
-
PMTS PORTALS
-
SCHOOL HOSTING
-
SELF-SERVICE PORTAL
-
SEO
- Updating..
-
TICKET TRACKING
- Updating..
Adsense
< All Topics
Print
How to change the tracking image
PostedMay 1, 2022
UpdatedMay 1, 2022
ByDeveloper
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.
[Tracker]
custom_image = "https://static.matomo.org/path/to/my/image.gif"
or
[Tracker]
custom_image = "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5QgLFiABlwQnpwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAUSURBVAjXY/wjLMyABJgYUAGpfABbJQEsALGyNgAAAABJRU5ErkJggg=="
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. https://demo.matomo.cloud/matomo.php?idsite=1
.
Posted
Updated
ByDeveloper
Adsense
Table of Contents