4

We switched from a PHP application to a Rails application last week. I ran daily reports and everything looked fine. When I ran a weekly content report it gave me data for index.php which doesnt exist anymore. The funny thing is that is looks spot on for page views. This also made me wonder how analytics would record "/" in a Rails app. I ran it through Fiddler, there is no redirect just a 404. I view source on the 404 and there is no tracking code.

I am pretty baffled. Anyone know what could be going on ?

2 Answers 2

4

We saw the same thing a few weeks ago. We got a massive surge of traffic reported that had nothing to do with our site.

The following URL might help:

http://www.blastam.com/blog/index.php/2011/06/are-rogue-sites-influencing-your-google-analytics-data/

0

Heres what I figured out. If I have a route in rails like /life/announcements and you put in /life/announcements.php Rails seems to ignore the .php. And though I haven't been able to recreate it for index.php, if you goto /index you get the index so following the above example /index.php would give you /index So analytics is just tracking the url whether Rails is ignoring the .php or not.

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.