Yesterday, I switched on a section of pages in our site that replaces a really old collection of pages. In our .htaccess file, I have rules that redirect a request for any page in the old section to the equivalent in the new section. All the tests I have done show this is working properly. I put the old URL into the address bar, and the new version of it is displayed.

However, when I look at Google Analytics Real-Time view, I am seeing a few page views for the old URLs. Since the redirect should occur before the GA code ever runs, does anyone have an idea about how GA is seeing visits for the old pages?

1 Answer 1


This is mainly down to caching. Your pages may be served from a user's local browser cache, which will continue to log visits from old URLs. Other users may be viewing a cached version in Google, which also carries Google Analytics code.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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