renickbuettner / matomo-plugin Goto Github PK
View Code? Open in Web Editor NEWIntegration for Matomo or Piwik analytics in OctoberCMS
Home Page: https://octobercms.com/plugin/renick-matomo
License: MIT License
Integration for Matomo or Piwik analytics in OctoberCMS
Home Page: https://octobercms.com/plugin/renick-matomo
License: MIT License
Hello!
I have a question.. I disabled the Cookie setting and use the middleware, so I don't have the javascript tags. I also enabled in Matomo the option to disable the cookies requesting.
But I am still getting cookies showed up:
Do you know why this is happening or how can I avoid this?
So the cookies are no problem but I would want a opt-out option, maybe you have a hint how I can realize this?
Thank you!!
Hello,
I see that php 8 is required to install your plugin.
Unfortunately, October CMS 2 is not compatible with php 8. Is it really required or the plugin could run under php 7.4+ ?
Best regards
Hello,
I'm having a strange issue on the dashboard : I used to have some Matomo widgets showing statistics.
I have made some changes on the dev version and since I uploaded it on production, I can't see my widgets anymore, or anything else as it breaks ajax loading.
The message is :
"Class "VisualAppeal\Matomo" not found" on line 12 of /var/www/vhosts/<censored-client-domain>/httpdocs/plugins/renick/matomo/classes/MatomoReports.php
I'm on PHP 8
PHP 8.0.27 (cli) (built: Jan 9 2023 09:40:33) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
the \vendor\visualappeal folder is well existing...
Any idea where to start my resarches ?
Thanks for your help
Hello,
first thank you for this plugin! Seems to work, matomo is showing data.
But when I want to add the widget - it is not showing up? Maybe I forgot a step? I configured the auth token.
Thanks in advance!
OCMS Version 3.2 added site_id
and site_root_id
to each setting entry.
public function up()
{
Schema::table('system_settings', function (Blueprint $table) {
$table->integer('site_id')->nullable()->unsigned();
$table->integer('site_root_id')->nullable()->unsigned();
});
}
Therefore the site_id
attribute is taking from the settings model, instead of the settings value.
DB:
public function getValidAttribute(): bool
{
dd($this->attributes);
foreach (['remote_url', 'site_id'] as $required) {
if (!isset($this->attributes[$required])) {
return false;
}
};
return true;
}
array:10 [ // plugins/renick/matomo/models/Settings.php:94
"use_middleware" => "1"
"use_cookies" => "0"
"remote_url" => "https://xxxx.xxxx.xx/"
"auth_token" => "1234567876543456787654345676"
"site_id" => null
"container_id" => ""
"id" => 7
"item" => "renick_matomo_settings"
"value" => "{"use_middleware":"1","use_cookies":"0","remote_url":"https:\/\/xxxx.xxxx.de\/","auth_token":"1234567876543456787654345676","site_id":3,"container_id":""}"
"site_root_id" => null
]
Therefore site_id
is always null and disables this plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.