Re: [Rails] Rails 2.3.5 Implementing Google Tag Manager

34 views
Skip to first unread message

Jason Fleetwood-Boldt

unread,
Sep 2, 2014, 11:42:28 AM9/2/14
to rubyonra...@googlegroups.com


Can you specify where you found this information about the limitations of google tag manager "will be supporting only for rails 3.0.0 and higher" ? 

Did you find a Gem or something for this purpose?

Ruby 1.8.6 reached end of life in 2011 (that was 3 years ago!) You have little excuse for not upgrading to at least 1.8.7 (although 1.8.7 technically reached EOL at the end of July, it is in a phase-out period). 


As far as upgrading Rails to 3, that may or may not be a big job depending on your Rails app. However, this is a good example of why staying current with Rails is significant because generally Gems aren't written for older versions of Rails.


On Sep 2, 2014, at 10:18 AM, M,Gopi M.gopinath <gopi1...@gmail.com> wrote:

while I doing RND on this, I found that google tag manager will be supporting only for rails 3.0.0 and higher version of rails

Jason Fleetwood-Boldt

unread,
Sep 3, 2014, 10:50:11 AM9/3/14
to rubyonra...@googlegroups.com

On Sep 2, 2014, at 10:55 PM, M,Gopi M.gopinath <gopi1...@gmail.com> wrote:

Hi Jason,

Thanks for your reply, here is link which says run time dependencies google-tag-manager needs rails >=3.0.0.

https://github.com/rcs/google-tag-manager-rails/blob/master/google-tag-manager-rails.gemspec


website have been build 8 yrs back, Now I am maintaining this, they did't upgrade this current version or atleast rails 3.0.0.


Right. What you have is an "eroded" Rails install and probably upgrading to 3 (note you will probably want to upgrade to 3.2.19) is likely a good idea in the long run.


One more question, 

Whether is there any possibilities to implement google-tag-manager without gem. in ruby 1.8.6 and rails 2.3.5


Of course, but you'll have to implement it yourself. I doubt if anyone will be re-writing that gem for that version Ruby any time soon.

Matt Jones

unread,
Sep 3, 2014, 5:16:54 PM9/3/14
to rubyonra...@googlegroups.com


On Tuesday, 2 September 2014 22:58:58 UTC-4, M,Gopi M.gopinath wrote:
Hi Jason,

Thanks for your reply, here is link which says run time dependencies google-tag-manager needs rails >=3.0.0.

https://github.com/rcs/google-tag-manager-rails/blob/master/google-tag-manager-rails.gemspec


website have been build 8 yrs back, Now I am maintaining this, they did't upgrade this current version or atleast rails 3.0.0.

One more question, 

Whether is there any possibilities to implement google-tag-manager without gem. in ruby 1.8.6 and rails 2.3.5


There's not much code in that gem; looks like the reason it requires >=3.0.0 is that it needs to register a helper, which changed radically between 2.3.x and 3.0. It may be easier to just copy the relevant bits directly into the application.

Regarding the upgrade, you should at the very least either get onto 2.3.16 or manually apply the fixes for CVE-2013-0156 and CVE-2013-0333:


Failing to do so leaves your server vulnerable to a remote-code-execution attack that can be triggered with a single request.

Here's a guide to upgrading step-by-step through the 2.3.x series. Haven't tried it, but the steps seem reasonable.


--Matt Jones
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages