GithubHelp home page GithubHelp logo

renickbuettner / matomo-plugin Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 56 KB

Integration for Matomo or Piwik analytics in OctoberCMS

Home Page: https://octobercms.com/plugin/renick-matomo

License: MIT License

PHP 83.56% HTML 16.44%

matomo-plugin's People

Contributors

carolinepublipresse avatar renickbuettner avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

matomo-plugin's Issues

[Question] Cookies still showing up

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:
image

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

Is Php 8 really useful ?

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

Class "VisualAppeal\Matomo" not found on dashboard

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

Widget not showing up?

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!

Nameing conflict with `site_id` attribute | incompatible with ocms v3.2

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:
image

    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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.