Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I use app_offline.htm for ASP.net v4.0 to temporarily shuts the site down with a check back soon message on that page. I still want to track this page for the number of visitors.

Just curious, does Google Analytics have any problem tracking app_offline page particularly? In other words, could this page be tracked as a normal page?

share|improve this question
add comment

1 Answer

Serving app_offline.htm with IIS will result in a 503 Service Unavailable error being returned. As with other "error" status codes, Google Analytics doesn't track these by default since as they indicate, an error was returned instead of a valid page or file.

By adding tracking code to this page and your server's error pages however, you can have Google Analytics track error pages. Here are two sources to help you do this:

Tracking Error 404 Pages and Broken Links in Google Analytics

How To Track 404 Errors in Google Analytics

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.