Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Does Google Analytics have any problem tracking app_offline.htm? 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

@Samaraweera270

Posted in: #AspNet #GoogleAnalytics

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Samaraweera270

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme