Hi DW,
I'm trying to detect whether a given page returned 404 statuscode or not.
I want to do this to send a different tracking code to Google Analytics when the page wasn't found.
I'm doing this which works fine:
<!--@If(Global:Request.Url<contains>'/admin/public/404.aspx')--> _gaq.push(['_trackPageview','my special tracking']); <!--@Else--> _gaq.push(['_trackPageview']); <!--@EndIf-->
But is there a better way?
// Martin