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
38
votes
1 answer

Event Value ? Google analytics / measurement protocol

How to use event value / view it when I use event tracking with measurement protocol. Currently in events tab in google analytics UI, I can check category , action but cant see the value associated with it that I sent to GA. Thanks
user476566
  • 1,319
  • 3
  • 26
  • 42
26
votes
2 answers

What should the client_id be when sending events to Google Analytics 4 using the Measurement Protocol?

I am using Google Analytics 4 (GA4) on the client to track a whole bunch of different events. However, there are 2 scenarios that I can't cover client side: A user completing check out on a payment page hosted by a third-party (Stripe in this…
26
votes
3 answers

Send event to Google Analytics using API server sided

I have a website where I send events to Google Analytics using javascript function: ga('send', 'event', 'showphone', 'feedback', 'result'); However I also need to send some similar events from server-side using PHP. I tried this quick start…
aokozlov
  • 711
  • 2
  • 7
  • 21
19
votes
2 answers

What is the rate limit for direct use of the Google Analytics Measurement Protocol API?

In the Documentation for Google Analytics Collection Limits and Quotas It gives the rate limits that are implemented by the various Google-provided libraries. I can't seem to find a published rate limit for users that are POSTing directly to…
astletron
  • 1,387
  • 1
  • 14
  • 26
14
votes
4 answers

Google Analytics 4 - Measurement Protocol API used without gtag.js or firebase

Is it possible to use GA4 Measurement Protocol to send events to Google Analytics and view and analyze them in the GA dashboard without using gtag.js or any other front-end script? The use case would be that some events are being sent to my server…
14
votes
1 answer

Google Analytics proxy

I have a special situation where the sites visitors can access the page from a certain domain but no others. So HTML and assets are no problem as long as they are stored on the server. Google Analytics on the other hand requires a download of…
Tony Gustafsson
  • 828
  • 1
  • 7
  • 18
12
votes
2 answers

Google Analytics Measurement Protocol

I tried to use google analytics to track some more custom data. So I thought I use the events. The following is the code I tried where I replaced the uuid and user agent:
user2693017
  • 1,750
  • 6
  • 24
  • 50
10
votes
1 answer

send a pageview event via Measurement Protocol to a GA4 property

How can I send a pageview event via Measurement Protocol to a GA4 property with PHP? This is how I'm doing, but inside my Google Analytics 4 property I can't see any traffic. $data = array( 'api_secret' => 'XXXX-YYYYY', 'measurement_id' =>…
splunk
  • 6,435
  • 17
  • 58
  • 105
10
votes
2 answers

GA4 Measurement Protocol returns events not the users

We've set Google Analytics GA4 event transfer via Measurement Protocol. We followed documentation fully - https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?client_type=gtag Everything was fine in test GA…
9
votes
1 answer

GA4 Measurement Protocol does not display user data (location, screen_resolution, language, etc.)

When I use the GA4 Measurement Protocol directly through HTTPS requests without Firebase or gtag.js, Google Analytics does not show any user-info such as screen resolution, location, language, etc., which I try to pass with user_properties or…
9
votes
3 answers

Google Analytics on iOS: events not tracked

I added Google Analytics SDK to my project, following the provided instructions on the guide by Google. However, when I try to track some events, this is the debug output: - (BOOL)application:(UIApplication *)application…
9
votes
1 answer

"There is no data for this view." in reports with custom dimensions in Measurement Protocol of Google Analytics

Our application needs to gather usage data through the Measurement Protocol of Google Analytics. We can successfully send "appview" hits to the Google Analytics server, and get a proper response by it (a GIF image). The appview hits appear on the GA…
Orlin Georgiev
  • 1,391
  • 16
  • 18
8
votes
3 answers

Setting debug_mode with Measurement Protocol (GA4)

Can't find a way to set the debug_mode parameter using Measurement Protocol 4. Tried to put it everywhere (and naming it all i can think of) but without luck :) Documentation is still very light and doesn't mention the debug_mode. With web/js and…
bang
  • 4,982
  • 1
  • 24
  • 28
8
votes
1 answer

Mobile data reported in GA Measurement Protocol appear in realtime but not in daily summary

I've been attempting to log activity on a mobile-like device using the Google Analytics Measurement Protocol. All of these attempts have validated using the validation URL, and I can see activity when I look at the real-time reports on the Analytics…
Prisoner
  • 49,922
  • 7
  • 53
  • 105
7
votes
1 answer

GA4 event Validation only returns 204

GA4 documentation provides an example of how to send requests to the GA4 Measurement Protocol endpoint for validation. Using the example providing the ids being asked for the response is always a 204 without a body when the documentation reads that…
SomewhereDave
  • 453
  • 8
  • 20
1
2 3
23 24