Has anyone successfully configured Google Analytics to work with a Rails application? I have tried included the Javascript in one of my layouts and Google Analytics still says: " Tracking Unknown (Last checked: 2006-09-12 7:16 PM PST.) The Google Analytics tracking code has not been detected on your website''s home page. For Analytics to function, you or your web administrator must add the code to each page of your website." I was able to set it up successfully with some static HTML pages, so I''m assuming it''s Rails? Thanks Tony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Included in the second should be including, sorry for the typo. Tony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Not a Rails bug. Google Analytics works fine with anything that includes its javascript in the <HEAD> of the HTML. Make sure you have the right value in your _uacct field and that when you load the page from a browser it shows up. -- Thanks, -Steve http://www.stevelongdo.com On 9/12/06, TeeC <starnix17-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Has anyone successfully configured Google Analytics to work with a > Rails application? I have tried included the Javascript in one of my > layouts and Google Analytics still says: > > " Tracking Unknown (Last checked: 2006-09-12 7:16 PM PST.) > The Google Analytics tracking code has not been detected on your > website''s home page. For Analytics to function, you or your web > administrator must add the code to each page of your website." > > I was able to set it up successfully with some static HTML pages, so > I''m assuming it''s Rails? > > Thanks > Tony > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
apsoto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-13 06:44 UTC
Re: Rails and Google Analytics
Is your site publicly accessible? I think google first needs to ''ping'' your site to ''activate'' it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
TeeC wrote:> Has anyone successfully configured Google Analytics to work with a > Rails application? I have tried included the Javascript in one of my > layouts and Google Analytics still says: > > " Tracking Unknown (Last checked: 2006-09-12 7:16 PM PST.) > The Google Analytics tracking code has not been detected on your > website''s home page. For Analytics to function, you or your web > administrator must add the code to each page of your website." > > I was able to set it up successfully with some static HTML pages, so > I''m assuming it''s Rails? > > Thanks > TonyAre you running it locally or on a production box? Google Analytics only accepts data from the specific host name you supplied. http://localhost:3000 is probably not what you told it to track. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
john-Ze1/vkSu0yniB9QmIjCX8w@public.gmane.org
2006-Sep-13 16:28 UTC
Re: Rails and Google Analytics
Actually Google recommends including their javascript at the very end of the page: from http://www.google.com/support/analytics/bin/answer.py?answer=26908&topic=7325: "Copy and paste the code segment into the bottom of your content, immediately before the </body> tag of each page you are planning to track. If you use a common include or template, you can enter it there." We''re using analytics with our Rails app, it rocks. John http://squirl.info Steve Longdo wrote:> Not a Rails bug. Google Analytics works fine with anything that includes > its javascript in the <HEAD> of the HTML.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I''ve used http://woss.name/2006/05/09/google-analytics-plugin/ and been very impressed with it. It will only insert the google tracking code when the rails app is in production mode. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Sorry for forgetting to respond to my own topic. Just thought I would say that I fixed the Google Analytics problem, their was a simple syntax error in my Google Analytics code. Should have looked harder>_<.Thanks, Tony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
> We''re using analytics with our Rails app, it rocks.Just an FYI that yahoo has a similar product in beta: http://publisher.yahoo.com/ -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
You have to be careful with Google analytics, I have heard that Google raised the bid amounts for publishers who were having a good conversion ratio. --- Carl Johnson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > We''re using analytics with our Rails app, it rocks. > > Just an FYI that yahoo has a similar product in beta: > > http://publisher.yahoo.com/ > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---