There are data shown in realtime report but the other reports are empty.

1,503 views
Skip to first unread message

Boy Krityakien

unread,
May 4, 2013, 10:49:08 AM5/4/13
to google-analytics-m...@googlegroups.com
My web server started collecting both event and pageview data using measurement protocol 4 days ago. The realtime report shows lot of hits (both pageview an events). However, I cannot see the data in normal report. It's now 4 days since I used the measurement protocol to collect the data. 


Any suggestions?

Nick Mihailovski

unread,
May 9, 2013, 2:48:35 PM5/9/13
to google-analytics-m...@googlegroups.com
Did you get this working?

Generally you need to post the http request you are sending to Google Analytics for us to give any sort of advise.

If you have a well formatted request, and have no interfering filters, and you are looking at the correct profile, data should show up in reports.

-Nick

Boy Krityakien

unread,
May 9, 2013, 10:16:15 PM5/9/13
to google-analytics-m...@googlegroups.com
No, it's still not working.

I used Spring's RestTemplate to post request to the ssl endpoing. Here is the debugging information.

Created POST request for "https://ssl.google-analytics.com/collect"
Setting request Accept header to [text/plain, application/json, application/*+json, */*]
Writing [{v=[1], tid=[UA-xxxxyyyy-3], cid=[4a8a08f0-9d37-3737-9564-9038408b5f33], dl=[http://www.xxx.com/test], cd1=[31.13.82.18], t=[event], ec=[cat], ea=[action], el=[label]}] using [org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter@19881f0]
POST request for "https://ssl.google-analytics.com/collect" resulted in 200 (OK)
Reading [java.lang.String] as "image/gif" using [org.springframework.http.converter.StringHttpMessageConverter@7afcba]

I post the following parameters (in the exact following order)
v=1
tid=UA-xxxxyyyy-3 (just replaced  xxxxyyyy to the real id)
cid=4a8a08f0-9d37-3737-9564-9038408b5f33
dl=http:///www.xxx.com/test (again just replaced xxx to real domain)
cd1=31.13.82.18
t=event
ec=cat
ea=action
el=label


Boy

Nick Mihailovski

unread,
May 10, 2013, 3:08:48 PM5/10/13
to google-analytics-m...@googlegroups.com
Hi,

The post values need to have &'s between them.

Can you try using GET?

-Nick

Boy Krityakien

unread,
May 10, 2013, 9:37:39 PM5/10/13
to google-analytics-m...@googlegroups.com
Hi Nick,


The spring's RestTemplate automatically add & between the parameters.

I've already tried using GET method. I also tried the plain http endpoint however the data only appeared on the realtime report (not the others).

Yesterday afternoon, I tried using a java library called jgmp (https://github.com/tasubo/jgmp from https://groups.google.com/forum/#!topic/google-analytics-measurement-protocol/Lbm-KsqqsKc). The result was the same (only shown in realtime report, may be I need to wait a few more hours so that it's 24 hours).


Boy

Boy Krityakien

unread,
May 13, 2013, 11:26:08 PM5/13/13
to google-analytics-m...@googlegroups.com
Just want to update the status. I already found the cause of the issue. It's the wrong type of property. I used the existing web property which is a classic analytics created 3 year ago so I cannot see anything tracked by measurement protocol. I need to create a new universal analytics property to get the data appear in the report.


Boy

Jake Gordon

unread,
Aug 18, 2014, 9:20:48 PM8/18/14
to google-analytics-m...@googlegroups.com
I am actually experiencing the exact same problem, although my property is most definitely a Universal Analytics property (confirmed using these approaches: https://support.google.com/analytics/answer/4457764?hl=en). Similar to OP's issue, I can see these events on the Real-Time dashboard no problem, but as far as I can tell I can see no trace of these events elsewhere, even through custom reports and after 30 hours. Attached is a screenshot of the response showing it is a 200 OK response. Here is what the post data looks like:

v=1&tid=UA-52982625-3&cid=developer&t=event&ea=test+action&ec=test+category&el=test+label&ev=10

Here is another post from someone else about the issue: 

My code is freely available on GitHub at the following link. I'm trying to build a .NET wrapper for logging events (for starters) so others don't have to go through this pain in the future.

I will send a virtual high-five or hug if anyone has an explanation for this. Thanks in advance.
measurement_protocol_response_screenshot.jpg

Jake Gordon

unread,
Aug 18, 2014, 10:11:32 PM8/18/14
to google-analytics-m...@googlegroups.com
False alarm! I'm embarrassed to say I just had the wrong date filter on Universal Analytics and wasn't including today's data. Data from yesterday never actually showed up but I just set up the property yesterday morning so I'm not surprised or concerned about losing 1 day of data. Nothing to see here... move it along. :P
Reply all
Reply to author
Forward
0 new messages