Page Name not Defined (trackSiteSearch)

Hello there,

I’m using this script in my application:

 var _paq = _paq || [];
        _paq.push(['trackSiteSearch', '" + SearchText + "', '" + Page + "', '" + SearchResults + "']);
        _paq.push(['enableLinkTracking']);
        _paq.push(['setUserId','" + Encrypt(Session_UserId(False)) + "']);
        // accurately measure the time spent on the last pageview of a visit
        _paq.push(['enableHeartBeatTimer']);
        (function () {
            var u = '" + GetPiwikAddress() + "';
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', " + GetPiwikSiteId() + "]);
            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 + 'piwik.js'; s.parentNode.insertBefore(g, s);
        })();

And this script is workine fine, as I can save all the keywords that are searched in my website. The question is that I get a “Page Name not Defined” in Piwik analytics (Page Titles) in several pages and I don’t know why. I tried to remove the script, and the issue got solved. Anyone knows why this happens?

Thank you for your attention,

João Cunha

Nobody knows why? I really need help on this one :confused:

Still waiting for an answer :yum: