plugin-GoogleAnalyticsImporter
plugin-GoogleAnalyticsImporter copied to clipboard
If shell_exec()/exec() is not available allow using API methods to manage archives
On some systems it's not possible to use shell_exec()/exec() to start the import. We can provide an alternative by providing a way to initialize imports via API methods.
This would require:
- an API method to import entities
- an API method to start an import for a day and when finished invoke the next day if the daily API request limit hasn't been reached
- we only do one day at a time to avoid any server side request timeouts
- if a setting is set or we can't run shell_exec/exec, use the API method in Tasks.php & Importer.php
This issue has been mentioned on Matomo forums. There might be relevant details there:
https://forum.matomo.org/t/google-analytics-importer-disabled-for-security-reasons/45675/2
I'd like to vote this up. Not just for security reasons but also for avoiding the use of nohup
so it doesn't potentially consume all server resources and crash.
@herbdool Added for prioritisation and our product team will have a look on this one