Hi, How to track the pages for different domains, i have 2 domains(www.domain1.com and www.domain2.com) pointing to same application. What modifications should i do in Environment.rb file, is it i need to keep a condition? i was using the code : # configuring google analytics Rubaidh::GoogleAnalytics.tracker_id = ''UA-5066152-1'' Rubaidh::GoogleAnalytics.domain_name = ''domain1.com'' Rubaidh::GoogleAnalytics.environments = [''production''] Plz help me !! thanks, sri.. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Graeme Mathieson, Rubaidh Ltd
2009-Jan-14 09:40 UTC
Re: Google Analytics code for Different Domains ?
Hi, Just spotted this on the list too. For the sake of completeness, here''s the response I sent to the private email I got asking the same question: I believe there''s a fork of the google analytics plugin which supports multiple domains. Check out: http://github.com/albanpeignier/google_analytics I haven''t thought of a clean way to merge it in that doesn''t break backward compatibility yet, which is why I haven''t pulled the fork back into master. G On Jan 13, 11:23 am, "Srinath A." <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, > How to track the pages for different domains, i have 2 > domains(www.domain1.comandwww.domain2.com) pointing to same > application. > What modifications should i do in Environment.rb file, is it i need to > keep a condition? > i was using the code : > > # configuring google analytics > Rubaidh::GoogleAnalytics.tracker_id = ''UA-5066152-1'' > Rubaidh::GoogleAnalytics.domain_name = ''domain1.com'' > Rubaidh::GoogleAnalytics.environments = [''production''] > > Plz help me !! > > thanks, > sri.. > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---