Display the Gravatar profile picture of your identified visitors in the visitor profile and the visits log.
Display the Gravatar profile picture of your identified visitors in Matomo.
Send the SHA256 hash of the visitor email address (for example sha256_email_address from your data layer) with your tracking requests and Matomo shows the matching Gravatar picture:
gravatar_hash and gravatarUrl in Live.getLastVisitsDetails).With Matomo Tag Manager, select your Data-Layer variable in the new Gravatar hash field of the Matomo Configuration variable (right after User ID): no Custom HTML tag or code needed. You can also use _paq.push(['ProfileGravatar.setGravatarHash', hash]), the Tracking HTTP API or the PHP Tracker.
The plugin never needs the email address: only its SHA256 (or MD5) hash is tracked, in a dedicated visit dimension that you can also use as a segment (gravatarHash).
In the system settings you can choose the default image displayed when a visitor has no Gravatar, and the maximum rating of the pictures.
Thank you for installing !
Install this plugin from the Marketplace as superuser or download the plugin and install it on your server from FTP in
the /plugins folder, then activate it.
Requirements: Matomo 6.x, PHP 8.1+, MySQL 8.0+ or MariaDB 10.6+.
The plugin never needs the email address of your visitors: your website provides the SHA256 hash of the email
address, for example in the data layer with the sha256_email_address key (the same key as Google enhanced conversions).
window._mtm = window._mtm || [];
_mtm.push({'sha256_email_address': 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da'});
Gravatar finds the profile when the email address was trimmed and lowercased before hashing. MD5 hashes are also accepted, any other value is ignored by the plugin.
No Custom HTML tag and no code are needed:
sha256_email_address (or user_data.sha256_email_address if you use the Google enhanced conversions structure).The hash is sent with the requests of your Matomo tags, for the site of the configuration.
Add this line to your tracking code, before _paq.push(['trackPageView']);:
_paq.push(['ProfileGravatar.setGravatarHash', 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da']);
The hash is sent with every following tracking request (page views, events, goals, downloads, outlinks, ecommerce,
content tracking and heartbeat), so you can also set it later, for example after a login in a single page application.
Call _paq.push(['ProfileGravatar.resetGravatarHash']); on logout.
Add the gravatar_hash parameter to your request:
https://matomo.example.com/matomo.php?idsite=1&rec=1&url=https://example.com&gravatar_hash=XXXXXXXXX
$tracker->setCustomTrackingParameter('gravatar_hash', $sha256EmailAddress);
$tracker->doTrackPageView('Home');
Live.getLastVisitsDetails returns gravatar_hash and gravatarUrl for each visit.gravatarHash segment.Go to Administration > System > General settings > ProfileGravatar:
How to install this plugin
This plugin is available in the official marketplace of Matomo. You have to install the same way as other plugins
Which versions of Matomo are supported ?
Version 6.x of the plugin supports Matomo 6 (PHP 8.1+, MySQL 8.0+ or MariaDB 10.6+). Use version 5.x of the plugin for Matomo 5.
Does the plugin need the email address of my visitors ?
No, never. Your website provides the SHA256 hash of the email address (for example in the data layer with the
sha256_email_address key) and only this hash is sent to Matomo. Never push the email address in clear text in the
data layer or in the tracking code.
Where is the "Gravatar hash" field in Matomo Tag Manager ?
In the Matomo Configuration variable, right after the User ID field. Select a Data-Layer variable containing the hash, then publish a new version of your container. The field is only displayed while the ProfileGravatar plugin is activated.
Why is the anonymous avatar still displayed in the visitor profile ?
The picture is only displayed when at least one visit of the visitor has a valid hash. Check that:
Is a hash of an email address personal data ?
Yes. A hash of an email address is a pseudonymous identifier under the GDPR: only send it for visitors who agreed to it,
as you would do for a User ID. The hash is stored in the gravatar_hash column of the visits and is deleted with the raw
data of the visits.
Does Gravatar receive data from my Matomo instance ?
When a Matomo user opens a visitor profile or the visits log, the browser loads the pictures from gravatar.com, so
Gravatar receives the hash and the IP address of the Matomo user. No request is made to Gravatar from the tracked website.
Why do I see "false" values in the gravatarHash segment ?
Versions prior to 6.0.0 stored false (or 0) for visits without a hash. These values are now ignored everywhere in
the plugin and are no longer tracked. They remain in the raw data of old visits, until your raw data is deleted.
Is the plugin active for all Matomo users in my instance ?
Yes, if you choose this plugin for your Matomo instance, all users will be able to use it.
How can I contribute to this plugin ?
You can help me develop this plugin by contacting me. You can also fork the project and open a pull request on https://github.com/openmost/ProfileGravatar. Any way you consider legitimate to contribute is welcome.
How long this plugin will be maintained ?
As long as possible, I have many project to maintain, I'm the first user of this plugin and I use Matomo on many project, if I see errors, I'll patch this plugin faster as possible !
Version
6.0.1
License
Keywords
Avatar, photo, profile, user, Visitor Profile, gravatar, picture, visits log
Last Updated
Sep 15th 2026
Requirements
Matomo >=6.0.0-b1,<7.0.0-b1
PHP >=8.1.0
Matomo 5.x, Matomo 6.x
Downloads
13367
Changelog
Authors
Websites
Activity
13 commits (last commit 2 hours ago)
Developer
Support
View and download this plugin for a specific Matomo version: