google-analyticssakai

Sakai google analytics - real time not working


I've been playing with the new google analytics feature:

https://jira.sakaiproject.org/browse/SAK-25634

...and can happily report it definitely does work, albeit with one caveat, I can't get the real time dashboard to work. I know sometimes with new google analytics accounts it can take time for both the data to filter through and the real time to start to work, however, I have had my account for many weeks now and data is indeed filtering through but the real time dashboard stubbornly refuses to work.

My hunch is it's a timezone problem and the reason why it's not showing is because the timestamps on the analytics data from my sakai instance differs from my timezone set on the dashboard (therefore the data is sent but the real time dashboard does not display the data as it sees it being 6-7 hours in the future/past, for example) but I haven't played with this yet. Does anyone know how to fix this problem?

p.s. +1 for universal analytics! https://jira.sakaiproject.org/browse/SAK-28052

EDIT: I discovered there's a timezone setting in the preferences of the sakai app (accessed using your browser), as well as a "server" time displayed in the footer, both are using the correct time, so perhaps it's not that??


Solution

  • I set this up anayltics to test on https://qa10.longsight.com and with the sample properties on that jira it didn't work. I changed the domain to just the domain and I did get realtime stats.

    For example the following did NOT work portal.google.analytics_domain=https://qa10.longsight.com

    But this did portal.google.analytics_domain=qa10.longsight.com

    This is the result from viewing it in two browsers.

    Real Time Stats Image