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

Google Measurement Protocol not showing events

I am trying to add a new event using Google Measurement Protocol. To test it, I'm sending a GET request…
Schroeder
  • 31
  • 4
2
votes
1 answer

gms.analytics.GoogleAnalytics - NoClassDefFoundError

My Aplication Class public class MyApplication extends Application { private static final String PROPERTY_ID = "UA-XXXXXX-X"; public static int GENERAL_TRACKER = 0; public enum TrackerName { APP_TRACKER, // Tracker used only in this app. …
2
votes
0 answers

universal analytics domain tacking is not working properly

I have a UA account which is connected to the following domain: http://www.mytestdomain.com with the following account id UA-123456-1 I am not using analytics.js because this code is fired from the server via ruby Gem. When i am trying to track…
2
votes
1 answer

Google analytics measurement protocol session timeout and query time limits

Let's assume we have a goal to setup offline events tracking using measurement protocol, the only limitations from our side is that we need to post the events feed once daily and have a GA setup with correct standart reports from GA UI. GA…
2
votes
1 answer

Enhanced Ecommerce with Measurement Protocol - Only the transaction appear in analytics

I am looking at the documentation: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#enhanced-ecomm Anyone knows a link that explains with sample code how we can use the Enhanced Ecommerce with Measurement…
Liam
  • 415
  • 1
  • 6
  • 11
2
votes
1 answer

Profile based on UserId - Measurement protocol

How to view information on view based on User Id ( used in measurement protocol ) . I am sending the following request but it does not seem to get registered in google analytics for user id based…
user476566
  • 1,319
  • 3
  • 26
  • 42
2
votes
1 answer

Passing an asterisk and number in key of a key:value pair

I'm trying to test Google Analytics measurement protocol, specifically transactions. I've successfully setup a simple ajax call that is posting to google analytics, but in order to pass a custom metric, you have to use an asterisk (*) and define…
Blexy
  • 9,573
  • 6
  • 42
  • 55
2
votes
2 answers

Unviersal analytics - Measurement protocol

When i look at website data under "audience overview" page , I notice the System section which contains - browser , operating system and service provider. how to set information for this using measurement protocol , any example or parameter…
user476566
  • 1,319
  • 3
  • 26
  • 42
2
votes
1 answer

Measurement Protocol wrong location

I wrote the following class to measure my server-side traffic through GoogleAnalytics measurement protocol. The problem is that all active visitors come from Italy which my server is currently on it - I assume the problem cause from fsockopen…
iSun
  • 1,714
  • 6
  • 28
  • 57
2
votes
1 answer

Tracking PayPal recurring payments via GA Measurement Protocol

I'm using GA Measurement Protocol to store ecommerce data (PayPal IPN) in Google Analytics. Everything is fine, except that I have no information about referral source(s), utm campaigns, all payments grouped like this: Source / Medium …
1
vote
0 answers

Email Tracking using Google Analytics 4?

So before GA4 came into effect I would use what this documentation page describes in order to add a 1x1 beacon to the end of emails in order to track email opening using Google Analytics. This would result in an HTML code like so:
1
vote
1 answer

Migrate from UA to GA4 #Measurement Protocol

According to here, https://support.google.com/analytics/answer/11583528?hl=zh-Hans&sjid=3641647078283548203-AP# UA must be updated to GA4 properties. I'm using measurement protocol to send data to GAU properties. So in order to send measurement…
1
vote
1 answer

GA4 custom dimensions with "event" scope is showing as "not set" in GA

I'm trying to solve a mystery why 2 of 5 custom dimensions of a offline purchase data are showing as "not set" in Google Analytics 4. That might have something to do with a scope of a CD, the ones that have "user" reach GA with no problem.…
1
vote
0 answers

cant create GA4 custom event based on measurement protocol events

im trying to create custom event from (GA4 => admin => events => create an event) when a purchase happens so im firing a purchase event using measurement protocol with this example object { "client_id": {{clint_id}}, "user_id": {{user_id}}, …
tariq
  • 11
  • 2
1
vote
1 answer

GA4 - Measurement Protocol Issue - gtag + client_id + session_id not merge on reports

We have migrated the UA to GA4. We use gtag.js for most of the events on the website and the Measurement Protocol for the purchase. We noticed that the measurement protocol event has a problem with reporting at the sessions level on channels…