Phpbb 3.3.0 integration

Hello all,

today I tried to insert the matomo tracking code in a phpbb 3.3.0 installation by inserting the tracking code in the overall_header.html file before the tag. That didn’t work. I tried it again in the overall_footer.html file directly before the tag. That didn’t work either. I cleared the cache in both cases and as far as I can see, the javascript code is loaded but matomo didn’t get any data.

The structure is as follows:

  1. the main page is a Drupal 7 page at DOMAIN.tld with enabled and working matomo integration via the matomo Drupal module
  2. the phpbb installation is located at DOMAIN.tld/forum
  3. an SSL certificate is activated for DOMAIN.tld

Can you give me any advice on this? I’m open to share the page URL with you in a direct message.
Thanks in advance!


How exactltly did it not work? Did you see errors in the browser console when checking your forum? Did the requests to matomo.js and matomo.php go through?

Matomo sais that there is no data that can be displayed.
When I access the forum page, I can see the following code in the page’s source code.

<script type="text/javascript">
  var _paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  (function() {
    var u="//DOMAIN.tld/matomo/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '2']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
<noscript><p><img src="//DOMAIN.tld/matomo/matomo.php?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript>

The firefox console doesn’t show anything.

So can you see the requests to Matomo go through in the network tab?

Make sure you don’t have DNT enabled in your browser when testing.

Yes, I assume that HTTP Code 304 is ok?

After a few days of doing nothing, it seems that the problem has fixed itself. I don’t know what happened but it’s recording data now.
Thanks for your help.

1 Like