Member
Member
Ralf   09-01-2025, 19:05
#1

Hi,
just wondering if it is the normal behaviour.
I have added the Widget Code from matomo to the widget field of the plugin (including the iframe tags).
I now have a button 'Matomo Statistic' in the backend. But when clicking on it it does not open the iframe within the "surrounding" backend. Instead it opens the dashboard in the same tab fullscreen.
Not as an iframe.

I hav already resetted the "allowed html commands" in the options of the general tab.

Do i miss something?

Ralf

Administrator
Administrator
acrylian   09-01-2025, 19:45
#2

I have to admit I haven't tried that for a long time although we also use Matomo on our site. We haven't use it because it required to be loggedin to Matamo to work back then. It shuld open within an admin page actually and that's what I see in the code. Will take another look when I get the time.

Member
Member
Ralf   09-01-2025, 19:48
#3

No problem - as you mentionend it is needed to login in Matomo first. So it is not a problem to have matomo open in another tab.
I was just wondering why it does not open in the iframe although i am logged in.

Administrator
Administrator
acrylian   09-01-2025, 19:52
#4

I think there is one setting in that code to allow the iframe content to show up without being loggedin. But not recommended to use if I recall right.

THe full screendisplay is weird, at least parts of the admin should be there if it would be weird browser behaviour. Will try to reproduce it as soon as I can.

Administrator
Administrator
fretzl   10-01-2025, 10:30
#5

Not sure why this happens but there is a possible fix.

In /config/global.ini.php enable the enable_iframed_pages option (i.e. enable_iframed_pages = 1)
https://matomo.org/faq/how-to/faq_92/

Member
Member
Ralf   10-01-2025, 17:25
#6

This would really solve the problem. But the FAQ also describes it as a possible security risk.
Unless I activate the "token auth" (what i not plan) the iframe comes up with the login field.
I will go with matomo itself open in a separate tab - if i want to see the stats.

Thanks for your tips!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.