Closed ketandoshi closed 4 years ago
what ruby version do you use? but the main problem seems to be that your google_global tracker configuration is wrong. Can you review that? Do you have an id configured there?
@bumi
ruby version 2.2.10
google analytics is configured as below:
config.middleware.use(Rack::Tracker) do
handler :google_analytics, { tracker: 'ga-key', ecommerce: true }
end
2.2. was EOL 2 years ago, are you able to use a newer Ruby, or is this a legacy environment?
@DonSchado Actually mine is a legacy environment. I can give it a try for newer version to check. But if people are using legacy environment, then it would be a problem for sure I guess.
Reading the code in google_global.rb the only obvious non 2.2. Syntax is the "squiggly" HEREDOC <<~
If you make a PR to fix that and test if the rest works with 2.2., I'm happy to make a new release for you.
@ketandoshi any update on this? could you get it working? (if so, a PR would be nice ;)
When started the server after installing the rack-tracker version 1.12.1, it raises an error as below: