Simple Rack middleware for implementing google analytics tracking in your Ruby-Rack based project. Supports synchronous and asynchronous insertion and configurable load options
MIT License
257
stars
53
forks
source link
Avoid error on redirection when "rack.session" is nil #26
When my server make a redirection without "rack.session" rack-google-analytics raise
NoMethodError: undefined method
[]=' for nil:NilClass` on https://github.com/leehambley/rack-google-analytics/blob/fb76f71fa3becfad1fa08138b301409a07bb0517/lib/rack/google-analytics.rb#L35This PR fix it.