Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page widget does not seem to show any existing tracking data #44

Open
plagasul opened this issue Jul 19, 2023 · 4 comments · May be fixed by #51
Open

Page widget does not seem to show any existing tracking data #44

plagasul opened this issue Jul 19, 2023 · 4 comments · May be fixed by #51

Comments

@plagasul
Copy link

Hello,

I have this fantastic plugin in a Kirby 3.7.2.1 installation

I have the dashboard in a tab in site.yml, fully working, like this:

  analytics:
    icon: chart
    columns:
      - width: 3/4
        sections:
          main:
            type: matomo-main
      - width: 1/4
        sections:
          sidebar:
            type: matomo-sidebar      

It shows data, and this data seems to match the one that I see at Matomo's own dashboard.

I also have a widget in a type of page, like this:

    sections:
      matomo:
        type: matomo-page
        period: year
        overview: true

Both this type of page and its parent are always unlisted (not draft)

Matomo records visits to these pages, but not the widget:

image

Config options:

    'sylvainjule.matomo.url' => 'https://xxxxxxxx.com/matomo',
    'sylvainjule.matomo.id' => '3',
    'sylvainjule.matomo.token' => 'xxxxxxxxxxxxxxxxxxxxx',
    'sylvainjule.matomo.active' => true,
    'sylvainjule.matomo.disableCookies' => true,

As you see I use cookie-less Matomo.

I have no routes in config.

How to troubleshoot this?

Thanks

@sashtown
Copy link

Same here with Kirby 4.3 and the cookie-less version of Matomo 5.1.1 on several projects. Doesn't matter if I use the Panel area or sections. I even tried it with a new token and a plain Starterkit. While the Matomo installation itself tracks data perfectly fine it won't show up in the Panel.

@alexdeloy
Copy link

This will currently fail if the token generated in Matomo has the Secure option checked.
Kirby-matomo seems to be sending a GET request which fails since the Secure-option only allows POST requests.

@soerenengels soerenengels linked a pull request Sep 5, 2024 that will close this issue
@soerenengels
Copy link
Contributor

soerenengels commented Sep 5, 2024

For me, this happened only on nested subpages (e.g. /posts/example-post-page). Made a quick fix that works for me: #51

@Afplaktape
Copy link

I couldnt get it to work either but after removing the security in auth creation it started to show the data in the panel as well:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants