Analytics
1.9K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Not getting all data with measurement protocol

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi,

I'm sending some data with measurement protocol but not receiving all data sent . The payload for the generated url has:

 

1 Event

3 Custom Dimensions

1 Custom Metric (which is declared as currency on GA)

1 Enchanced Ecommerce hit (checkout)

 

The url looks like this:

 

https://google-analytics.com/collect?v=1&tid=UA-XXXXX-1&cid=1000256980.1478188301&uid=00QG000000w0cf...

 

What I'm not getting is the metric data, sometimes the checkout hits, and never product details. Am I sending too much data? not in the correct format/order?

 

Thanks

1 Expert replyverified_user

Not getting all data with measurement protocol

[ Edited ]
Rising Star
# 2
Rising Star

There is an excellent tool for troubleshooting these - https://ga-dev-tools.appspot.com/hit-builder/

 

It says this is a valid hit -- but its not perfect, and you are using "|" as a delimiter for pr1ca where you should be using "%2F" ("/") for example, Santander%2FBanamex%2FBanamex%2FPrestacomer (BNP Paribas)%2FCreditoFamiliar


Here is a handy cheat sheet if you haven't seen it already for ecommerce values to see what else you may need or want - https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#commonhits).  By using the valid UA on the hit builder, you can actually send hist back to your GA account for further troubleshooting.

From your description, it sounds like you have GA set up properly.  However, for other readers who come across this discussion, please also make sure you have advanced e-commerce enabled for your view (https://support.google.com/analytics/answer/6032539). 

Speed hack - If you are debugging a lot and just looking for simple debug, the simply add "/debug" to the hit URL (https://google-analytics.com/debug/collect?v=...") and you can get a quick display on your browser. But it won't pick up everything - for example, if you have accidently put in two campaign values it blissfully validates.  But it's a good, quick tool for troubleshooting, even though it would not have helped in your particular case.

_________________________________________________________________________
Director of Marketing | Nehmedia | Partner Profile

Not getting all data with measurement protocol

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆

Thanks Phillip, I will change the "|" for "/" it may solve the Enhanced Ecommerce part. What I can't understand is why I'm not getting data in the custom metric part (cm4). Is it the format/order? something else? I'm using the debugger and Hitbuilder, but both tell me the hits are accepted and correctly created. I think it's more on the platform side but i cant find what exactly is it.

Not getting all data with measurement protocol

Rising Star
# 4
Rising Star

Do you have the custom metric set for Hit level scope? 

_________________________________________________________________________
Director of Marketing | Nehmedia | Partner Profile

Re: Not getting all data with measurement protocol

Follower ✭ ☆ ☆
# 5
Follower ✭ ☆ ☆
Genius! I'll change that too!