[joomla] page title not defined

Hi,

I’m using a plugin to integrate piwik into joomla. (Apparently, I’m not allowed to add a link, here. Anyway, it is called “Piwik analytics for Joomla!” and it is developped by Fredrik Åström.

In the stats, the page titles don’t seem to be recognised, as it writes : “page title not defined”.

According to the FAQ (General - Analytics Platform - Matomo) :


What is “page title not defined” in the Page titles report?
Piwik provides two reports for your page views: Page Titles and Page URLs. A page title is the content of the HTML tag. If your pages do not define this Piwik will instead report “page title not defined” for the visits on those pages.

However, my page titles are defined indeed.

Extracts of header :

[...] [...] Disponibilités et tarifs

And I do have the piwik script at the end of the page.

Is there anything I could do ?

I’m posting here and not on the plugin’s bugtracker because since the script is at the end of the page, I assume the plugin does it’s job. I might be mistaken.

Hi Jeriwik,

thanks for your question. I am not very experienced on Joomla though i try to help you.

First off: could you provide us the URI? (I know about the linking problem. Just use www . test . com/foo/?bar )

Maybe you consider another plugin which is also provided by Joomla over here:
http:// Joomla! Extensions Directory

Hope that helps so far.

BR, Mariusz

Hi. Thanks for answering.

The website is maisondevacanceslarochelle.jolimont.fr/anypage

I think the other plugin was the first I tried, though I can’t remember why I left it up for this one.

Anyway, the piwik tag appears at the bottom of the page, so it should work. Or if it doesn’t, it might not be the plugin’s fault.

(Sorry for not being that reactive : I couldn’t find how to subscribe to the post, so as to be emailed when answered to.)

Hi Jeriwik,

sorry for your inconveniences. Piwik will try to improve this forum later on.
But it’s a good point since it bothers me aswell style_emoticons/<#EMO_DIR#>/dry.gif
I will keep it in mind and suggestion this when it’s time.

Back to your problem. I check your site and found a weird JavaScript implemention.
Well, at least it’s different than mine. If you have the latest version of Piwik installed you should change the Joomla plugin.
If not then update Piwik to the latest version.

See this pic:
[attachment=1021:jeriwik.png]
Tell us if that works for you. Feel free to ask further questions style_emoticons/<#EMO_DIR#>/smile.gif

BR Mariusz

Wow, thanks for taking the time to do that.

I did the necessary modifications to have something that looks like what you have. (Indeed, I have the latest version of piwik.)

It works. At least as regards to page titles. I should check if I didn’t break something else. And contact the author of the plugin to tell him to change his php file as per :


            $piwik_javascript = '
                    <!-- Piwik -->
                    <script type="text/javascript">
                    var pkBaseURL = (("https:" == document.location.protocol) ? "'.$piwik_https_url.'" : "'.$piwik_http_url.'");
                    document.write(unescape("%3Cscript src=\'" + pkBaseURL + "piwik.js\' type=\'text/javascript\'%3E%3C/script%3E"));
                    </script><script type="text/javascript">
                    try {
                            var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 2);
                            piwikTracker.trackPageView();
                            piwikTracker.enableLinkTracking();
                    } catch (err) {}
                    </script>
                    <noscript><p><img src="'.$piwik_http_url.'piwik.php?idsite=2" style="border:0" alt=""/></p></noscript>
                    <!-- End Piwik Tag -->
                    ';

Thanks again !