Rails谷歌分析不足

时间:2015-10-20 03:56:52

标签: ruby-on-rails google-analytics

我使用gem'omniauth-google-oauth2'并希望从谷歌分析获得信息,我的omniauth文件有:

  provider :google_oauth2, ENV['google_key'], ENV['google_secret'], {scope: 'https://www.googleapis.com/auth/analytics, https://www.googleapis.com/auth/analytics', access_type: 'offline', select_account: true}

但我有错误:

{"errors"=>[{"domain"=>"global", "reason"=>"insufficientPermissions", "message"=>"Insufficient Permission"}], "code"=>403, "message"=>"Insufficient Permission"}: { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } } 

我在开发者控制台中启用了Google Analytics。谁能帮帮我?

0 个答案:

没有答案