gabba

gabba gem not tracking different domains

为君一笑 提交于 2019-12-13 01:54:06
问题 I have a UA account which is connected to the following domain: http://www.mytestdomain.com with the following account id UA-123456-1 When i am using the Gem to track the domain it works well: Gabba::Gabba.new('UA-123456-1', 'http://www.mytestdomain.com', user_agent).page_view('index', 'index.html') But other domains can't be track: Gabba::Gabba.new('UA-123456-1', 'http://www.notmydomain.com', user_agent).page_view('index', 'index.html') What should i do to track others domains as well ?

Events sent to Google Analytics with Gabba don't have a hostname

倾然丶 夕夏残阳落幕 提交于 2019-12-12 03:56:49
问题 I'm using Gabba to send events to Google Analytics from my rails back-end. When I send events, the "hostname" is not set (in Content > Events > click on an event > set "Second dimension" to hostname). Here's a simplified version of how I send my events: gabba ||= Gabba::Gabba.new(Settings.google_analytics.ua_code, "none") gabba.identify_user(cookies[:__utma], cookies[:__utmz]) gabba.event("Submissions", "submit_for_review") My question is: where does Google Analytics pick up the hostname from