Thomas
Forum Replies Created
-
Hi @crohana50
it’s only supported for Matomo On-Premise see the differences https://matomo.org/faq/wordpress/what-are-the-differences-between-matomo-on-premise-and-matomo-for-wordpress/
We’re currently working on Matomo 4 where we are planning to add support for this. It’s still a few months away though unfortunately.
Cheers,
Thomas@tmk2020 We’ll be releasing an update in the next 7 days that likely fixes the issue in case it’s not working yet. As I haven’t heard anything in a while will close this issue for now. Feel free to let us know in case this isn’t working for you.
@ymca marking this one as resolved now. Glad we could help. Should any other issues occur feel free to create a new issue and as always we’ll do our best to help.
Changing the trusted host name should be enough @ymca
>> Security note: for added security, we recommend that you install Matomo in its own MySQL database and specify a username and password for a user that only has access to that database.
>What security problem are there?
This is a general recommendation that if you use Matomo On-Premise, for enhanced security it may be good to install it in a different database. This also applies to any other application. Why? Imagine you install for example WordPress and Matomo On-Premise in the same database. Should WordPress now have some SQL injection vulnerability, then this would allow some attacker to also read the data from Matomo On-Premise if they are using the same database.
If they were using different databases, and your WordPress was installed in a different database, then an attacker would not be able to access any data stored in Matomo On-Premise because the applications are completely separated.
It’s basically a good practice when possible, to use different databases for them.
If you use Matomo for WordPress, they will both use the same database because Matomo will be installed as part of WordPress. Just like any other WordPress plugin is installed as part of your WordPress.
> Was wondering if I use WordPress anyways, then maybe use it with Mamoto.
You say that “Matomo On-Premise” is more efficient than the Mamoto plugin for WordPress, so I better use “On-Premise”.I can only give some general advice but it really depends on your website, on your server and what you want. If you don’t want the hassle of maintaining a separate Matomo On-Premise, and your server can handle the additional traffic that is coming in, then the Matomo for WordPress plugin should be fine. It’s just really hard to put numbers behind it. I wish I could give you some numbers so it be more clear but it varies so much depending on how many CPU for example your server has, whether you are on a shared hoster, how many visitors you have etc. As a general rule, I reckon up to 50.000 or 100.000 pageviews per month I assume you won’t be running into any issues.
> (Mamoto, WordPress (only for my eyes), site I want to analyze (everyone see it))
> If I just want to analyze only the visitors on the main page of my site, will it save some traffic from my server?Sorry not quite sure what you mean here? Maybe you can describe it a bit differently just to make sure I understand what you are after?
If you already have Piwik / Matomo running, I recommend to keep it that way. There isn’t really a reason to use this Matomo for WordPress plugin and you get probably more out of Matomo and it will be taking less resources on your server by not using Matomo for WordPress but your already existing Matomo.
However, if you prefer to use it within WordPress, I would simply give it a go. It might just work fine. You can always uninstall it again if needed.
Generally, Matomo On-Premise will be more efficient than this Matomo for WordPress plugin because this WordPress plugin has the overhead that on every tracking request we need to also load/bootstrap WordPress. Compared to Matomo On-Premise which only needs to load/bootstrap Matomo but not WordPress.
Generally speaking, if you would run Matomo On-Premise on the same server anyway, then you could as well install it in WordPress. If you have a lot of traffic, you may want to separate these two applications so it is guaranteed that Matomo would not slow down your website. It really depends how many server resources are free on your server.
If your server is using very minimal resources, then you can easily install Matomo for WordPress additionally. In case you know your server capacity is already say at 70%, then you maybe don’t want to install Matomo for WordPress but rather install Matomo On-Premise on a separate server. Otherwise it might add say another 15% load onto your server (after all there are basically tracking requests your server needs to handle for each visitor/page view).
It’s all a bit hard to explain and say. If you already have a Matomo On-Premise running, I would recommend to just add a new site to your Matomo On-Premise and track this site through the WP-Matomo plugin.
Regarding further differences between Matomo for WordPress and Matomo On-Premise I recommend you have a look here: https://matomo.org/faq/wordpress/what-are-the-differences-between-matomo-on-premise-and-matomo-for-wordpress/
Does this help @ymca ?
Thanks Liam.
@liam239 The developer mentioned they will be updating their plugin in couple of weeks.
@tmk2020 have you had a chance to look into this maybe? Be great to resolve this issue.
Just for reference I followed up here: https://wordpress.org/support/topic/update-less-php-dependency-if-possible/
FYI here’s an update. I was able to reproduce it by installing the same plugins. The issue is caused by ameliabooking plugin (Amelia – Events & Appointments Booking Calendar) and causes this error:
An exception has been thrown during the rendering of a template ("ParseError: Unexpected input in anonymous-file-0.less on line 1, column 0The problem is they are also using in their plugin some dependency called less.php but they are using some old, unsupported version: https://github.com/oyejorge/less.php versus we are using a more recent supported version https://github.com/leafo/lessphp
I have created an issue for us here: https://github.com/matomo-org/wp-matomo/issues/233
Unfortunately, solving this properly – if we can – will be quite some work and we will only be able to do this as part of the Matomo 4 update as it would otherwise break other Matomo plugins potentially. I have a big interest of fixing this issue though as it will avoid a lot of similar issues.
I’m now also logging an issue with the other plugin author and will ask them if they could maybe update the version they are using.
Here’s a temporary workaround that might work: Disable the booking plugin, load Matomo UI (it might work), then enable the booking plugin again. The Matomo UI will likely work until you update our plugin again.
Sorry I can’t be of better help right now about this issue.
Thanks Liam. I have received the system report and will investigate and try to reproduce.
Actually, with
wp-content/uploads/matomo/config.ini.phpI gave you the wrong path. It was supposed to bewp-content/uploads/matomo/config/config.ini.php.So what happened is that this file maybe still existed from the original install and therefore Matomo thought it was already installed. When you moved the file, Matomo realised it wasn’t installed yet and installed it.
> Just to double check: There is also an .htaccess file in the wp-content/uploads/matomo/config/ folder.
Yes this
.htaccessis expected and correct. There should be also additionally one in thematomofolder directly. If it doesn’t exist just yet, it may be automatically created in the future.I hope this helps?
I’m glad it works now @liam239 and apologies for the trouble you had.
Hi Liam,
I see you already checked out all our FAQs which is great, thanks for making the effort, very appreciated 🙂
First of all, could you maybe check if there’s a file in
wp-content/uploads/matomo/config.ini.php?Basically, we trigger the installation if/when this file is missing. I suppose you deleted this file during the manual deletion of all data which is great. I suppose it was now recreated? You could probably try and remove this file to see what happens when you open the WordPress admin dashboard afterwards. It might successfully re-install.
Be also good to check if there are any Matomo tables still installed ? A SQL query like
show tables like 'wp_matomo_%'would show you that (assuming your WordPress prefix iswp_).Could you otherwise send us your system report? Either here or to our email: wordpress at matomo dot org?