1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Improve real time data fetch error message

* Provide link to enroll in the real time data beta
This commit is contained in:
Casey Primozic 2019-08-30 18:46:43 -07:00
parent d5e06fe0c2
commit a56c1fa923
No known key found for this signature in database
GPG Key ID: 2A02222DA3425B99

View File

@ -125,7 +125,7 @@ func getReports(
func getLiveCount(service *gaV3.Service, viewID string) *gaV3.RealtimeData { func getLiveCount(service *gaV3.Service, viewID string) *gaV3.RealtimeData {
res, err := service.Data.Realtime.Get("ga:"+viewID, "rt:activeUsers").Do() res, err := service.Data.Realtime.Get("ga:"+viewID, "rt:activeUsers").Do()
if err != nil { if err != nil {
log.Fatalf("Failed to fetch realtime data for view ID %s: %v", viewID, err) log.Fatalf("Failed to fetch real time data for view ID %s: %v. Have you enrolled in the real time beta? If not, do so here: https://docs.google.com/forms/d/1qfRFysCikpgCMGqgF3yXdUyQW4xAlLyjKuOoOEFN2Uw/viewform", viewID, err)
} }
return res return res