This is a comment on How to Add Matamo/Piwiki Tracking Code?, posted by WikiAdmin at 03.02.2019 22:59

View source for SOLVED

Hi, so I was able to test the code.  So the only problem with the template is the javascript has in it ##[]## so the template interpreter thinks ##['setTrackerUrl', u+'piwik.php']## is some sort of variable information from the php file.  Is there an escape character?  

Anyways, I tried what was suggested in [B], using ##add_html## and that worked!  However, one more useful instruction is ##add_html## should be called before ##$tpl->h_additions = $this->get_html_addition('header');## in the **_header.php** file.

Yeah, would be interested in helping with Matomo integration HowTo.  However, would need some more reference about what is mentioned, extensions/config.  I do agree the variable approach would be great.  Also, same about the admin panel module and creating one for Matamo, would need some guidance about modules in admin panel.