Hi to all
I’m a newbie with Matomo, so please excuse me if i’m asking you silly questions.
I have installed Matomo on the matomo . domain1 . com and i’m adding sites for tracking, such as… domain2 . com, domain3 . com etc…
I have read how to setup a cron job on matomo website but it’s not clear to me the following argument:
--url=http://matomo.domain/
Why do I need the “url” parameter and which domain should I put here? The domain where matomo is installed or the domain of one of the websites for which I want to track traffic?
In the documentation:
--url=http://example.org/matomo/
is the only required parameter in the script, which must be set to your Matomo base URL eg. http://analytics.example.org/ or http://example.org/matomo/
Then in your case, you should provide --url=http://domain1.com/matomo/
Thanks.
Ok, but why the suggested solution for Plesk is different?
/opt/plesk/php/8.1/bin/php/var/www/vhosts/domain.com/httpdocs/console core:archive --no-ansi
>> /var/www/vhosts/domain.com/logs/cron-matomo-archive.log
Here the --url parameter is not used… why?