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
1
vote
1 answer

How to set up conversion tracking to optimize campaigns for approved user?

I'm trying to finish my analytics setup and I've got a bit confused what is the best way forward. The end goal is to have tracking setup that enables me to optimize my Google and Facebook campaigns towards approved users instead of just signed up…
1
vote
0 answers

Get GCLID thru Measurement Protocol

Is it possible to pull users GCLID thru the Measurment Protocol? I found this docs https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters but not sure if they reference exact params I tried hitting the endpoint but I'm…
1
vote
3 answers

How to properly pass the session_id to GA4 via Measurement protocol

GA4 purchase events are sent from client server via measurement protocol. But there is no session_id parameter in the queries, because of that source and medium is lost. We tried to pass the session_id parameter in MP request, but no data were…
1
vote
0 answers

Can I filter out internal traffic for data that were sent through Measurement Protocol?

I want to filter out internal traffic from my data so I added the IP addresses and then added a filter which is under "Testing". The problem is, when I go over Reporting (Realtime Report) to check, I can't add a filter for Test data filter name…
jjeoneun
  • 346
  • 5
  • 16
1
vote
1 answer

How to specify timestamps per event with measurement protocol

I'm using Measurement Protocol (for Google Analytics 4) and I'd like to send multiple events in batches to send fewer overall requests, but I'm not sure how to specify the timestamp of each individual event. I'm sending an http post request to the…
1
vote
0 answers

400 bad request error when sending hits with Firefox user-agent to GA Measurement Protocol

I'm sending hits to GA Measurement Protocol, and some of them do not make it to the GA. I've noticed that all of them have one thing in common: the user-agent is Firefox, only varying version and device. Some examples: Mozilla/5.0 (Windows NT 6.1;…
LuckyLizard
  • 415
  • 3
  • 13
1
vote
1 answer

get client_id to send to measurement protocol

I have to send Analytics4 events from php backend. The API require to send client_id In some Php code samples, I see this id is randomely generated. But in official Google JS documentation, it is get from gtag So, I suppose GA4 generate this id by…
wAx
  • 11
  • 2
1
vote
1 answer

How to set custom geolocations on events using Measurement Protocol? (GA4)

I would like to add custom geo-information (e.g. city) to events that are sent to our tagging server (running in AppEngine), in order to show the event location in the "real time" map view in Google Analytics Reports. The events are originating from…
1
vote
1 answer

GA4: Geographic Data showing "(not set)" when event is sent using Measurement Protocol

I send events through Measurement Protocol and I have no problem obtaining the data from the custom dimension′s parameters. However, the data for "City" and "Country" are just displayed as "(not set)" for all the events I have sent until now. Does…
1
vote
1 answer

How to match app_instance_id and client_id in firebase?

I have a mobile app (ios,android) and a website not directly related to the app where users make purchases. Some user events are sent to firebase via the application sdk, but some must be sent from your own backend, which receives data about user…
1
vote
1 answer

Where to get the index id for a custom dimensions in the google analytics measurement protocol

I am using google analytics collects API call https://developers.google.com/analytics/devguides/collection/protocol/v1/reference#using-post I just wanted to know whether it supports multiple custom dimensions in post-call This is post body which I…
Afeefa KTK
  • 11
  • 1
1
vote
0 answers

Demographic and Language information not updated in Google analytic account using measurement protocol 4

I am using measurement protocol 4 to track desktop application-features. I have sent the event to Google analytic 4 account with measurement ID and API_secret and received to GA4 account. Request info POST…
Hussain
  • 11
  • 3
1
vote
1 answer

Google Analytics server side call err "The value provided for parameter 'tid' is invalid. using a valid" with measurement ID

I am trying to do a server side call to Google Analytics 4 with a valid Measurement ID (G-0GHN4RGNDQ) it's a test one, so OK to share here, see https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#v and the debug call…
aginsburg
  • 1,223
  • 1
  • 12
  • 22
1
vote
1 answer

Google Analytics Measurement Protocol can not track cart addition and product view

I have implemented a measurement protocol in my project. I can successfully track purchases, checkouts, pageviews and refunds. For example, by sending this data with some additions from function outside I can track purchase events. data = { …
1
vote
1 answer

Standard data reports show nothing in GA4 projects using measurement protocol

I recently started using GA4 with measurement protocol api. I have an issue, that doesn't matter how many events, custom or automatic ones I send, they don't appear in standard reports. I see users in user explorer though: JS code that I used to…
R. Vait
  • 918
  • 2
  • 7
  • 20