2

I have a UA account which is connected to the following domain: http://www.mytestdomain.com with the following account id UA-123456-1

I am not using analytics.js because this code is fired from the server via ruby Gem.

When i am trying to track linked domain it works well:

http://www.google-analytics.com/__utm.gif?utmwv=4.4sh&utmn=7108653235&utmhn=mytestdomain.com&utmcs=UTF-8&utmul=en-us&utmdt=PAGE_VIEW_TITLE&utmhid=6413225625&utmp=4.html&utmac=UA-123465-6&utmcc=__utma%3D1.197975304100145214523.2102153242.1405604565.1405604565.15%3B%2B__utmz%3D1.1405604565.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmr=&utmip=

But other domains can't be track:

http://www.google-analytics.com/__utm.gif?utmwv=4.4sh&utmn=7108653235&utmhn=notmydomain.com&utmcs=UTF-8&utmul=en-us&utmdt=PAGE_VIEW_TITLE&utmhid=6413225635&utmp=4.html&utmac=UA-123465-6&utmcc=__utma%3D1.197975304100145214523.2102153242.1405604565.1405604565.15%3B%2B__utmz%3D1.1405604565.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmr=&utmip=

What should i do to track others domains as well ?

related: gabba gem not tracking different domains

Community
  • 1
  • 1
Alex Stanovsky
  • 1,286
  • 1
  • 13
  • 28
  • I have a couple of questions: 1) What do you mean by track other domains? Are these domains you control? 2) I don't see what the Gabba gem gets you that analytics.js doesn't? Why are you using it? – Philip Walton Jul 17 '14 at 16:33
  • do you have any filters in place that are excluding traffic from other domains? – CrayonViolent Jul 17 '14 at 20:59
  • Also, on the surface, it seems to me that you (or the gem you use) is basically attempting to reproduce a js generated request.. For example, that `utmcc` param.. the value in there includes a hash or checksum of the domain (I do not know GA's exact algo for generating it), so GA may be rejecting it from that too. GA has a [Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1/) for sending data in server-side.. – CrayonViolent Jul 17 '14 at 21:08
  • I don't have filters. – Alex Stanovsky Jul 20 '14 at 08:22
  • The Gem is using the Measurement Protocol API. – Alex Stanovsky Jul 20 '14 at 08:23

0 Answers0