• Resolved ymca

    (@ymca)


    Hi,

    I have the Matomo from back when it was Piwik.
    I used it as a self site and now I see that it has a plugin that I can install on my WordPress.
    I have seen this:

    Running Matomo Analytics on your server can use significant resources. Whenever someone visits your WordPress website, your server will need to serve your WordPress pages to the user, as well as tracking the user journey in Matomo, resulting in an additional request for each page view.

    So my question is, what is the different between a Mamomot in a plugin and Mamoto as a site?
    I have a WordPress site that I can install Mamoto on, but I need the statistics to come from another site that is not WordPress.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Thomas

    (@tsteur)

    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 ?

    Thread Starter ymca

    (@ymca)

    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.

    1. If my 3 sites are on the same server (Mamoto, WordPress (only for my eyes), site I want to analyze (everyone see it))?
    2. If I just want to analyze only the visitors on the main page of my site, will it save some traffic from my server?

    Plugin Author Thomas

    (@tsteur)

    > (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.

    Thread Starter ymca

    (@ymca)

    Maybe you can describe it a bit differently just to make sure I understand what you are after?

    My site – for all users that visit it.
    Mamoto – I have this to see stats of my users that visit my site.
    WordPress – Administrative things for me.

    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 wanted to change my Mamoto because I saw some errors when clicking the autoupdate.
    So was thinking to wait for the 4 version maybe it will fix these errors.

    Also was thinking to install it on my WordPress DB but then I saw this:

    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?

    Plugin Author Thomas

    (@tsteur)

    >> 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.

    Thread Starter ymca

    (@ymca)

    Thank you very much.
    I’m going to use them in a wildcard SSL so all the systems will be more secured.

    Thread Starter ymca

    (@ymca)

    If I want to change the domaim I’ve installed Mamoto, I just need to change the name in “Trusted Matomo Hostname” or do I need to re-install it?

    Plugin Author Thomas

    (@tsteur)

    Changing the trusted host name should be enough @ymca

    Plugin Author Thomas

    (@tsteur)

    @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.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Matomo on a non wordpress site’ is closed to new replies.