Piwik on Google Sites

I’ve seen that someone aksed this too but there is not answer yet, so I also ask.
Is it possible to track a website in Google Sites from Piwik? I’ve put the code in my website and there is any record. I think it doesn’t work.
Someone can clarify me this issue?

Thank you very much in advance.

does google sites allow Javascript? Otherwise, if it doesn’t you can use the Image Tracker: Tracking API - Analytics Platform - Matomo

No, it doesn’t allow it. I’ve tried with the Image Tracker and now it detects the visits but not the concrete actions…could it be that Piwik can’t track the actions on gadgets of a webpage of Google Site (adding, modifying, eliminating blocks or gadgets of a personal homepage…)?
Thank you very much for the attention.