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

Google Analytics: Are custom metrics "integers only" when sent in through the measurement protocol?

We need to send a decimal value to google analytics, and had decided to do this using a custom metric of the type "Currency". In the Tracking documentation it says that this should be allowed: If the custom metric is configured to have a currency…
Henrik Söderlund
  • 4,286
  • 3
  • 26
  • 26
3
votes
1 answer

Google Analytics force HTTPS to prevent 307 Internal Redirect

When Google Analytics sends data from an http page, it starts out as an http request like so: http://www.google-analytics.com/collect?payload-data-goes-here But this causes a 307 status code (Internal Redirect) due to HTTP Strict Transport Security…
budi
  • 6,351
  • 10
  • 55
  • 80
3
votes
0 answers

Interval between transactions with the same Transaction ID

We use the Google Analytics Measurement Protocol to send offline transactions to Google Analytics. Sometimes we need to send two or more transaction with the same ID (and positive revenue). It works properly when we send transactions (with the same…
ksanto
  • 59
  • 4
3
votes
2 answers

How to send batch request in measurement protocol

I'm using measurement protocol for my desktop application. With this following URL I able send single request to Google…
3
votes
3 answers

How to use measurement protocol for desktop application

what I have tried is, [with POST] jQuery.support.cors = true; $.ajax({ url : "https://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXXX-1&cid=e8efa9cb-7b9e-479e-b07b-1528547dcdb4&t=event&ec=UX&ea=click&z=123456", type : 'POST', cache…
Divesh Oswal
  • 250
  • 3
  • 13
3
votes
1 answer

Can a user have only non-interactive hits in Google Analytics

I want to test my script that send event to Google Analytics via Measurement Protocol. For testing I've created a new account and trying to send the following request using the following…
sckol
  • 131
  • 2
  • 13
3
votes
1 answer

Precise Geolocation reporting using Google Measurement API

I'm having issues with Google Measurement Api. I need to manually report ecommerce transactions to the analytics, and the only data i'm getting from the payment processor is Country Code (which is not precise enough for our analytics process) and IP…
Goran Radulovic
  • 1,987
  • 3
  • 16
  • 23
3
votes
2 answers

Google Analytics screenname for events

I'm confused about the "Screen Name" dimension in Google Analytics. If you go to Behaviour -> Events -> Screens you'll see it. I'm wondering how you can attach a screen name to an event. Currently I'm tracking screenview (hits) and event (hits). I…
coalmee
  • 1,334
  • 2
  • 16
  • 27
3
votes
1 answer

Google Analytics - How to get the client_id (anonymous client id) sent with Measurement Protocol

we are seding requests like this throught the google analytics measurement protocol to track user interaction there. For us its important to be to link a interaction to a specific user so we where happy to be able to set the "cid" attribute of the…
3
votes
1 answer

Google Measurement Protocol offline apps and event dates

I want to use Google Measurement Protocol to record offline events, i.e. take data from an EPOS system and track them in Google Analytics. This would be a batch process once a day. How do I tell Google what the date of the event is? If the console…
Chris
  • 163
  • 1
  • 1
  • 10
3
votes
0 answers

Measurement Protocol does not appear in google analytics real time

I send similar requests and they do not appear in Google Analytics REAL TIME section I followed this guide : Measurement Protocol Developer Guide But apparently I'm missing something Remote Address:213.57.23.44:80 Request…
2
votes
0 answers

Duplicate Purchase events with the same transaction_id with Measurement Protocol

We are currently tracking purchase events from two distinct sources: A. Our frontend application, which directly sends the events to Google Analytics 4 (GA4) B. Our backend server, which uses the Measurement Protocol to send the events to GA4. Both…
2
votes
2 answers

Is there a way to specify the application version with the Google Analytics 4 Measurement Protocol?

I'm trying to migrate from Google Analytics 3 to Google Analytics 4 in an Electron application. As the gtag method don't seem to work when the application is built (probably due to the app:// URL), I'm using the measurement protocol (we used the…
2
votes
1 answer

How to send page view location + referrer + user ip + user agent on GA4 with measurement protocol?

I am trying to migrate my existing code from Universal Analytics to GA4. This is the data I used to send using measurement protocol (not to be confused with JS library) URL of page visited User agent Referral URL User IP This way, I could see…
2
votes
2 answers

GA4 dimensions like language is (not set) for events sent by the measurment protocol

I am using GA4 measurement protocol to record offline conversions to Google Analytics. I have two conversion events: sale and purchase. Events are being recorded and in the Monetisation overview I can even see the revenue. But it seems that GA is…
homam
  • 1,945
  • 1
  • 19
  • 26