Show the Gravatar picture of your identified visitors in the visitor profile and the visits log.
Display the Gravatar profile picture of your identified visitors in the visitor profile and the visits log.
sha256_email_address), no Custom HTML tag or code needed._paq.push(['ProfileGravatar.setGravatarHash', hash]) (and resetGravatarHash on logout) with the JavaScript tracker, the gravatar_hash parameter of the Tracking HTTP API, or the PHP Tracker. The hash is attached to every tracking request, so it can be set after the page view.gravatarHash segment. Live.getLastVisitsDetails returns gravatar_hash and gravatarUrl.>=6.0.0-b1,<7.0.0-b1)Openmost is an official Matomo Implementation Partner. We design Matomo tracking plans, including User ID and cross-device identification where your legal basis allows it, and implement them so your team can maintain them.
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 it 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 us develop this plugin by contacting us, or open an issue or a pull request on GitHub. Any way you consider legitimate to contribute is welcome.
How long will this plugin be maintained ?
As long as possible. We use Matomo on many projects and are the first users of this plugin: if we see errors, we patch it as fast as possible!
Version
6.0.4
License
Keywords
Avatar, photo, profile, user, gravatar, picture, visitor-profile, visits-log
Last Updated
Oct 22nd 2026
Requirements
Matomo >=6.0.0-b1,<7.0.0-b1
PHP >=8.1.0
Matomo 5.x, Matomo 6.x
Downloads
13826
Changelog
Authors
Websites
Activity
13 commits (last commit 9 days ago)
Developer
Support
View and download this plugin for a specific Matomo version: