pinax / pinax-webanalytics

analytics and metrics integration for Django
MIT License
124 stars 22 forks source link

404 reporting with Google Analytics #3

Open typeshige opened 11 years ago

typeshige commented 11 years ago

There are article about how to get GA to track 404 errors. Is it possible for Metron to help with that?

An article I read says to change the GA script to:

_gaq.push('[_trackPageview', '/404.html?p={{ path }}"]);

instead of the standard:

_gaq.push("[_trackPageview']);

I'm just wondering what's the best way to do that without hard coding the script in my 404 page.

KatherineMichel commented 5 years ago

This issue has been around for quite some time. Unless I'm mistaken, it appears that this can be done through GA dashboard (see example link). Is this issue still relevant? https://www.searchviu.com/en/404-errors-google-analytics/