Questions tagged [measurement-protocol]

The Google Analytics Measurement Protocol allows developers to make HTTP requests to send raw user interaction data directly to Google Analytics servers.

This allows developers to measure how users interact with their business from almost any environment. Developers can then use the Measurement Protocol to:

  • Measure user activity in new environments.
  • Tie online to offline behavior.
  • Send data from both the web and server.

Links

351 questions
4
votes
1 answer

Google Analytics 4 (GA4) measurement protocol (debug view) not working

I am trying to send an event to Google Analytics 4 with measurement protocol, via Insomnia. I would like it to show up in GA4 debug view, so I've added the debug_mode parameter and changed the POST endpoint to /debug/mp/collect instead of…
4
votes
3 answers

Sending session_id via Measurement Protocol

I have front-end GA4 implementation and want to send transactions data (and some custom events) from the server via MP. With recomendations of Google to include session_id as a param, so that measurement protocol events appear in session-based…
Michael
  • 41
  • 1
  • 2
4
votes
1 answer

GA4 Conversion tracking using Measurement Protocol

[Edited. Added code sample and more explanations] Is anybody familiar with the GA4 Measurement Protocol? We are sending events from our backend servers to the server-side GTM container using the GA4 Measurement Protocol. Everything works fine except…
4
votes
1 answer

Google Analytics UA Measurement Protocol events not working across multiple properties as of June 17 2021

We have several Universal Analytics properties (not GA4) which have been set up over the last few years. Some older properties were set up as 'Mobile' which is no longer an option, the newer properties were set up as 'Web'. These are node.js apps…
4
votes
1 answer

How do I enable POST request body in Google Cloud Platform Logs?

I've been studying logs in Logs Explorer in Google Cloud Platform and noticed that available logs don't show the body of a POST request, which is crucial for my task (I run Google Tag Manager Server-Side and need to study logs of all inbound…
4
votes
1 answer

Is there a measurement protocol for Google Analytics new property App+Web?

Hi I am implementing Google Analytics App+Web new property and trying to send data from the backend to Google Analytics property. I could not find reference/documentation for sending hits to the App+Web property. In the measurement protocol…
4
votes
4 answers

Can a http request be sent with the nginx location directive?

Maybe this is trivial, but I haven't found anything meaningful or I didn't know where to look... (How) is it possible to to send a curl / whatever command as soon as a certain path is requested? Something along these lines, but that would actually…
lucian
  • 623
  • 10
  • 21
4
votes
3 answers

Set up Google Analytics to track a command line Node app

I'd like to use Google Analytics to track usage of a command line Node app. Tracking will be strictly opt-in. I'd like to track basic usage, plus which operating system and version of Node was used. I've found the Measurement Protocol, but I'm…
joeformd
  • 133
  • 10
4
votes
2 answers

Google Analtyics not registering transactions when using Measurment protocol

I try to send http request to track eCommerce. I got response http_code=200 but, I can't see any event or transaction. Code: $fields_string = ''; $fields = array( 'v' => 1, 'tid' => "UA-xxxxxx-1", 'cid' => $userid, …
4
votes
3 answers

Can you update items in a transaction in enhanced analytics?

I am using the enhanced ecommerce plugin for Google Analytics in my store. I am using analytics.js to send transaction information in the checkout success page. After completing the transaction, I want to update some custom metrics associated with…
4
votes
2 answers

Measurement Protocol refund data

I've resolved all issues with sending data, but receive issue when trying to refund. I've sent this array to measurement protocol : 'v' => '1', 'tid' => $tid, 'cid' => $cid, 'ti' => '12345', // this transaction exist…
user4547691
4
votes
1 answer

How to get the client id while sending data to GA using Measurement protocol?

I have tried using analytics.js (Universal Analytics) through both frontend (js) and backend(Measurement protocol). When using through frontend (js way): I check that there is a cookie named _ga whose value is GA1.2.1360127879.1438853622 . And it…
4
votes
3 answers

How to post to Measurement Protocol using Ruby

I'm trying to post to Google Measurement Protocol using Ruby: uri = URI.parse("http://www.google-analytics.com/collect") params = {"v"=>"1", "tid"=>"UA-XXXXXXXX-X", "cid"=>"XXXXXXXXX.XXXXXXXXX", "t"=>"event", "ec"=>"200", "ea"=>"John"} result =…
Sergey
  • 47,222
  • 25
  • 87
  • 129
4
votes
0 answers

64 bit support for Google Analytics SDK (v 3.10) in iOS

I have old app containg Google Analytics SDK v1, I am going to update my app to support 64 bit support. I have replaced Google Analytics SDK v1 with Google Analytics SDK v3.10, (I have updated iOS SDK only not any where else in my analystic tool) I…
4
votes
0 answers

Google Analytics in iOS Embedded Framework conflicts with hosting app?

I am building an iOS 8 Embedded Framework which will be available to our clients to integrate into their own apps. I need to track events occurring within the code of the framework, so I have added the google analytics sdk to the…
cohen72
  • 2,830
  • 29
  • 44
1 2
3
23 24