Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

How to track error pages (404 pages) (1 reply)

$
0
0
Hi, i´m sorry i have posted here somewhere else but false Information

in piwik FAQ part (http://piwik.org/faq/how-to/faq_60/) there is a article about tracking 404 pages.

I have added the tracking code:

_paq.push(['setDocumentTitle', '404/URL = ' + encodeURIComponent(document.location.pathname+document.location.search) + '/From = ' + encodeURIComponent(document.referrer)]);

as mensioned in my piwik code bevor the line:

_paq.push(['trackPageView']);

The result is that also every valid URL is listed in the report: Actions > Pages Titles in the entry for 404 pages, i hope i explain it clear (english is not my language) an example a page or post who is ok is after putting the code also listed by 404 pages

do i have to edit something in the code?

hope somebody can help

Patrick

Viewing all articles
Browse latest Browse all 4243

Trending Articles