Mobile app version of vmapp.org
Login or Join
Ann8826881

: Google Analytics shows visits to pages redirected in .htaccess Yesterday, I switched on a section of pages in our site that replaces a really old collection of pages. In our .htaccess file,

@Ann8826881

Posted in: #GoogleAnalytics #Htaccess #ModRewrite

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ann8826881

1 Comments

Sorted by latest first Latest Oldest Best

 

@Carla537

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme