0

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?

I thought it was from the utmz cookie, but it doesn't work.

Robin
  • 21,667
  • 10
  • 62
  • 85

1 Answers1

1

Try this:

g = Gabba::Gabba.new("CODE", "mydomain.com")
Alexander Randa
  • 868
  • 4
  • 7
  • Yeah, this works, but I basically wanted to avoid having to do that. I thought that was possible since on the client side, I was setting `_setDomainName` to `none`. – Robin Nov 16 '12 at 19:34