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

GA - Is it possible to update order in Google Analytics but keep original source?

I've a question that really needs your help since I'm not finding too much information in the internet. In a development we use Google Measurement Protocol API to confirm payments or refund orders in Google Analytics. But when we do that the order…
1
vote
0 answers

Measurement protocol not registering item category

We're sending item and transaction hits to Google Analytics using the "Measurement Protocol" API, using Ecommerce (not Enhanced Ecommerce). The requests are delivered successfully and Analytics web interface displays them, but it doesn't show all…
1
vote
1 answer

how to user CURL to send our request to www.google-analytics.com/collect

I have been going though the documentation for the Universal analytics measurement protocol I have gotten theurl and parameter, now I have a question is that how I can make a HTTP request with CURL, here is my request: curl…
chen
  • 11
  • 2
1
vote
1 answer

Push data to Google Analytics

My client send me spreadsheet that contains all the transactions. Now I have to push those sheet data in Google Analytics, So How can I push those data in Google Analytics? Should I have to create a PHP Script that will read from spreadsheet and…
1
vote
2 answers

Googla Analytics Measurement Protocol Library For .NET

We are trying to find the Measurement Protocol library for .NET in NuGet. We see that there are several third party ones, but find it strange that there isn't an official one from google similar to their Reporting API which they have for .NET. Does…
user2981411
  • 859
  • 12
  • 34
1
vote
1 answer

Sending page identifier with event to Google analytics via PHP

Not sure if stackoverflow is the appropriate place to post this but couldn't find a better place. I'm working on a directory style site that has thousands of listings which visitors can submit their details to through a number of methods... A…
Levi Cole
  • 3,561
  • 1
  • 21
  • 36
1
vote
1 answer

Google Analytics custom dimension values are not displayed in Audience -> User Explorer

I am trying to have add custom dimensions in google analytics For this, I have added several custom dimensions under admin -> custom definitions -> custom dimensions I am using google analytics measurement protocol to send values for custom…
Fuzayl
  • 43
  • 6
1
vote
2 answers

Google Analytics Measurement protocol batch request not working properly

I am trying to send multiple hits in a single request to Google Analytics ! Sometimes it sends one or two hits, sometimes it doesn't send at all ! I have tried to do the same thing, placing \n after each hit in my request…
Fuzayl
  • 43
  • 6
1
vote
3 answers

I cannot see Google Analytics events working, using Python requests

I'm trying to send post requests to https://www.google-analytics.com/collect? like so: name = user.first_name if user.username: name += f'[{user.username}]' query_params = { 'v': '1', 't': 'event', 'tid':…
Donovant
  • 3,091
  • 8
  • 40
  • 68
1
vote
1 answer

Missing significant number of transactions when using measurement protocol and non-interactive

Using google analytics and it's measurement protocol, I am trying to track eCommerce transactions based on my customers (who aren't end-consumers meaning not sparse unique userid's, locations, etc...) which have a semantic idea of a "sale" with…
1
vote
1 answer

GA measurement protocol tracks event but not enhanced ecommerce purchase

I am currently successfully tracking purchases from website using enhanced ecommerce (via GTM). I have Goals configured that correctly track these in real time. E.g. event goal for Category = Enhanced Ecommerce and Action = transaction. However,…
Tarostar
  • 1,196
  • 1
  • 15
  • 27
1
vote
1 answer

Is the Client ID in Google Measurment Protocol mandatory when User ID is used?

The Google Measurement Protocol documentation claims that the cid is optional if uid is used: This field is required if User ID (uid) is not specified in the request So I make the following requests to measurement protocol: GET…
jsj
  • 9,019
  • 17
  • 58
  • 103
1
vote
2 answers

No event tracking in Google Analytics

I am sending a POST request to the Google analytics measurment protocol at https://www.google-analytics.com/collect?v=1&t=event&tid=UA-151666808-2&cid=123&el=cus&ea=CLIENT_REGISTRATION_SUCCESS3&ec=Server However it is not being tracked on my…
1
vote
0 answers

Unable to create new Tracking ID for Google Analytics Measurement Protocol

Summary: Since the launch of the Analytics "Apps and web (beta)" properties, it is no longer possible to create new Tracking IDs for tracking Application Data (screen hits, exceptions and so on) using the Measurement Protocol (v1). Is there any way…
1
vote
2 answers

POST Request to Google Analytics with Measurement Protocol from the App Script returns valid response but doesnt work

I'm trying to send offline conversions data to Google Analytics using the Measurement Protocol I'm sending this POST Request using the Google AppScripts: function hitPageViewGA (line,sheet) { var range = sheet.getRange(line,1,1,10); var values…