Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics: Events showing in real-time, but not in reports

I am sending events through Google's Measurement API - not the "normal" JS API.

I started sending events about 80 hours ago (late Thursday through early Monday).

On a normal day, we send about 200-400 events. There is exactly one filter applied (filtering out a single office IP address) to the view.

Expected behavior: Events show up fine both in the real-time view as well as the reports under "Behavior".

Observed behavior: Events only show up in the real-time view, but not in the reports under "Behavior".

like image 457
yas4891 Avatar asked Mar 11 '19 18:03

yas4891


1 Answers

I guess you have some errors in your request data. You didn't mention params that you are sending to GA server but I had the same issue and I can tell about my experience. I was sending such parameters to GA server (PHP, using Measurement Protocol):

['uid' => $user->id, 't' => 'event', 'ec' => 'article', 'ea' => 'create', 'el' => 'pageview']

GA displayed events in real-time view but not in Behavior section. I solved my problem when I replaced 'uid' by 'cid', it wasn't a problem in my project. But I assume if you want to use 'uid' parameter you have to activate 'User-ID' function:

User-ID staff in GA

like image 153
Dzmitry Kulahin Avatar answered Sep 30 '22 07:09

Dzmitry Kulahin