Using domain of email address as custom dimension

I would like to create a dimension for a group of customers based on the domain of their email address, i.e I don’t want to identify them specifically but only by one characteristic they have in common, so without assigning identifiable user ids to each customer. How could I do this using Matomo? I thought as well of creating user ids only based on the domain, so one group of people have the same user id, but I don’t know if that is possible with Matomo.
Thank you for your help in advance!

It is possible, but I think your tracking will be messed up… If 2 users from same domain are visiting your site at the same time, their sessions will be melted.

You can use custom dimension for this kind of feature:
https://matomo.org/docs/custom-dimensions/
https://developer.matomo.org/guides/tracking-javascript-guide#custom-dimensions
Custom dimension are also available in Matomo Tag Manager:

1 Like