Mobile app version of vmapp.org
Login or Join
Welton855

: Is it possible to track 404 images with google analytics? I know I can track 404's using google analytic's, but our images are served from a CDN and we can't control the 404 page that is

@Welton855

Posted in: #GoogleAnalytics

I know I can track 404's using google analytic's, but our images are served from a CDN and we can't control the 404 page that is served from the CDN.

Is there a way that I can detect missing images and track that via google analytics?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton855

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shakeerah822

I the end I went for this approach:

$("img").error(function () {
var src = $(this).unbind("error").attr("src");
pageTracker._trackPageview("/404-image?path=" + src + "&from=" + window.location.href);
});

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme