: 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
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?
More posts by @Welton855
1 Comments
Sorted by latest first Latest Oldest Best
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);
});
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.