Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy custom dimensions settings across sites #16151

Open
loopmode opened this issue Jan 17, 2018 · 10 comments
Open

Copy custom dimensions settings across sites #16151

loopmode opened this issue Jan 17, 2018 · 10 comments
Labels
c: Custom Dimensions For issues related to the Custom Dimensions plugin. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@loopmode
Copy link

Hi
How can you copy custom dimensions settings from one site to another?
Can you just clone the rows in the database and change the siteId?
(Seems quite scary for non-DB people like me..)

@tsteur tsteur transferred this issue from matomo-org/plugin-CustomDimensions Jun 29, 2020
@tsteur tsteur added c: Usability For issues that let users achieve a defined goal more effectively or efficiently. c: Custom Dimensions For issues related to the Custom Dimensions plugin. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. labels Jun 29, 2020
@heurteph-ei
Copy link

@9joshua
Copy link
Contributor

9joshua commented Apr 12, 2023

Third party plugin which claims to do this: https://github.com/NatLibFi/CustomDimensionsManager

@EreMaijala
Copy link
Contributor

@9joshua I'm the author of the plugin, and any feedback is welcome. I'd love to see the functionality as part of CustomDimensions plugin, though.

@heurteph-ei
Copy link

Hi @tsteur,
What do you think about including EreMaijala's plugin in Matomo core?
If not possible, @EreMaijala, don't hesitate to add your plugin to Matomo official market place:
Don’t hesitate to share your plugin to the Matomo plugins marketplace thanks to:
https://developer.matomo.org/guides/distributing-your-plugin

@tsteur
Copy link
Member

tsteur commented Apr 12, 2023

@EreMaijala adding the plugin to the Matomo Marketplace be awesome.

@heurteph-ei Good question re integrating into core. I can't really say much as I can't really make that decision and am not sure how many people need this feature. It sounds like maybe not too big of a user group needs it and then it may be better as a plugin on the Marketplace. If it's in the core, we would probably want a UI for it and would also need to add tests etc so it's not super straight forward to just move it into core unfortunately.

It be great to learn more about the use cases here. If people need this feature, please comment. It does help us understand demand more.

@heurteph-ei
Copy link

Hi @tsteur
In our case, we manage intranet websites, and we have a template measurable, that we copy "by hand" for common config, including common custom dimensions...

@EreMaijala
Copy link
Contributor

@tsteur I'll see what I can do about the Marketplace.

Our use case is that we add new sites using Matomo API and need all sites to have the same custom dimensions, so we use one site as a template and then synchronize the settings to all other sites with a cron job.

@9joshua
Copy link
Contributor

9joshua commented Apr 13, 2023

@heurteph-ei @EreMaijala A little of topic but you could create a template website and use the migration tool to copy the template settings to other instances. I did some testing and found it is possible for the 'source' and 'target' server to be the same (targeting the same instance providing the website data). This means you can have a template site which can be duplicated when adding new sites to another instance or to the same instance, including Custom Dimensions settings, etc.

@heurteph-ei
Copy link

Hi @9joshua
Good idea, but...
When I read the doc:

Before executing the migration command we always recommend to make a backup of the target database and ideally also test it first with the dry-run flag (dry-run is faster but can take a long time as well and will give you an idea of how long migration will take).

It seems too risky for just a standard admin action... 😟

@EreMaijala
Copy link
Contributor

CustomDimensionsManager is now available on the Matomo Marketplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Custom Dimensions For issues related to the Custom Dimensions plugin. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

6 participants