Measurement Protocol doesn't work for my property

180 views
Skip to first unread message

Oleg Kolomiets

unread,
Dec 23, 2014, 5:49:01 AM12/23/14
to google-analytics-m...@googlegroups.com
Hi!
I've already read all the same topics, but haven't catch any mistake for neither my property nor client requests. Need help.
I'm using node.js package (https://github.com/peaksandpies/universal-analytics) to send data to Google Analytics on my backend side. All settings seem to be correct.
Here is debug log:

[universal-analytics] Enqueued pageview ({"dp":"/login","v":"1","tid":"UA-57623440-1","cid":"0d1a2640-92cc-4421-a382-8f8d4d0a846a","t":"pageview"})
[universal-analytics] Sending 1 tracking call(s)
[universal-analytics] 1: {"dp":"/login","v":"1","tid":"UA-57623440-1","cid":"0d1a2640-92cc-4421-a382-8f8d4d0a846a","t":"pageview"}
[universal-analytics] Enqueued event ({"ec":"Authentication","ea":"Login","el":"User","ev":"John Doe","v":"1","tid":"UA-57623440-1","cid":"0d1a2640-92cc-4421-a382-8f8d4d0a846a","t":"event"})
[universal-analytics] Sending 1 tracking call(s)
[universal-analytics] 1: {"ec":"Authentication","ea":"Login","el":"User","ev":"John Doe","v":"1","tid":"UA-57623440-1","cid":"0d1a2640-92cc-4421-a382-8f8d4d0a846a","t":"event"}
[universal-analytics] Finished sending tracking calls
[universal-analytics] Finished sending tracking calls

 
As a result I don't have any hits on Real-Time reporting. And no any statistics on Audience Overview.

I will appreciate any suggestions and thoughts.

Rick Tait

unread,
Jan 14, 2015, 2:09:08 PM1/14/15
to google-analytics-m...@googlegroups.com
Oleg,

the reason your second example (event insert) doesn't work is because you're specifying full text as the Event Value (&ev=) when event value must be an integer value.  via https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#ev Google tells us:

ev/Event Value 
Value Type: integer
Specifies the event value. Values must be non-negative.

also FYI, i substituted your &tid= for my test site, and your first example (pageview insert) worked just fine -- i saw the hit come right up in my realtime view.  regarding your second example, as soon as i removed the &ev= (or changed its value to an integer) i also saw the hit come up right away in my realtime view. 

hope this helps!

-RMT

Oleg Kolomiets

unread,
Jan 19, 2015, 6:05:30 AM1/19/15
to google-analytics-m...@googlegroups.com
Thanks Rick!
Events work under your amendment for ev/Event Value. Indeed it's my mistake, didn't notice that.
Also pageview works fine as expected. Don't exactly know what happened before.
Reply all
Reply to author
Forward
0 new messages