Duplicate custom dimensions among site

Hello !

I use the custom dimension plugin. I have several website where the custom dimension are exactly the same. Is there a way to copy/export them when a new website is added ?

Thank you by advance

+1 … Was this ever solved? I am having the same issue. I have dozens of sites and I need to track the same custom dimensions on each one. Surely there is a way?

There is a ticket in the GitHub issues:
Copy custom dimensions settings across sites · Issue #16151 · matomo-org/matomo (github.com)

I agree with you: Our use case is sharing around 15 custom dimensions between all our tracked sites…

We have some hundreds of sites, so I decided to create a plugin that can be used to copy custom dimensions configuration of one site to another or all other sites. No guarantees whatsoever that it works for all cases, but it works for us. The plugin is available for download here for the brave to try: https://github.com/NatLibFi/CustomDimensionsManager. It’s console-only and can be cron’d so that any new sites are synced automatically.

1 Like

Don’t hesitate to share your plugin to the Matomo plugins official page:

via:
https://developer.matomo.org/guides/distributing-your-plugin

Thanks to @emaijala for the creation of Custom Dimensions Manager plugin: