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
0
votes
0 answers

Cache Google Analytics hits in offline app

Google Analytics for Android caches hits while the device is offline. Unfortunately his older than 4 hours might get lost. (See https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#qt ) The app in question will often…
Simon
  • 4,395
  • 8
  • 33
  • 50
0
votes
0 answers

Google Analytics: How to send a 'PageView' through an asmx WebService?

This is a function I took from this link: https://gist.github.com/0liver/11229128 namespace something { /// /// Summary description for GA /// [WebService(Namespace = "http://tempuri.org/")] …
0
votes
1 answer

Measurement protocol and two tracking IDs

We're looking to set up measurement protocol requests to import non PII CRM data to Google Analytics. This will be tied to a client ID that is stored in the CRM and the measurement protocol request would be set to a non-interaction hit populating…
Charlie W
  • 39
  • 7
0
votes
1 answer

Can I set user ID using Measurement Protocol?

If I send a request like this via Measurement Protocol: v=1&tid=UA-123456-2&cid=455646456.4646456456&uid=123 What will happen? Given that UID hasn't been set on the site before. Will this request associate the provided client ID with user ID…
Sergey
  • 47,222
  • 25
  • 87
  • 129
0
votes
1 answer

Google analytics measure protocol event tracking stopped working

I have a script which runs on my server every time and event happens. This randomly has stopped working on the 1st/2nd July. I have checked the Analytics change history and the last change was April. The code has not changed and i'm not getting any…
lennard
  • 523
  • 6
  • 19
0
votes
1 answer

What is the value of ul (User Language) in Google Analytics Measurement protocol

I am building a server side application that needs to report data to GA via Measurement Protocol. I want to fill the languages that the user have, from the…
Uriel Katz
  • 187
  • 1
  • 2
  • 10
0
votes
1 answer

Cannot see product's revenue in Google Analytics EE

Currently I implement Google Analytics Enhanced Ecommerce, and there's an issue with purchase tracking. I track purchases from PHP backend, so I use Google Analytics Measurement Protocol library (link leads to corresponding readme section) for PHP.…
0
votes
0 answers

Google analytics measurement protocol Queue Time doesn't work properly

Have problem with Queue time parameter: 1. Have hit. 2. Offline action (phone call started). 3. During conversation visitor comes to site with other source. So the new session started. 4. Phone call ends and I'm sending event with qt parameter =…
0
votes
1 answer

Measurement Protocol hits without cId

I'm tracking my eCommerce site with Google Analytics and I'm using Googles Measurement Protocol to track offline payments. When a order is made, I save the client id from the cookie with the order. If a customer has something to prevent tracking, I…
David
  • 403
  • 1
  • 5
  • 13
0
votes
2 answers

Google UA not connecting event to previous sessions

I am sending an offline event to Google UA using their measurement protocol. I am trying to tie it to the users previous visits to get attribution and using Google's own Client ID from their cookie to do that. While the event does appear in Google…
0
votes
0 answers

Sending event to GA not working

I'm using a language that doesn't have a GA library to use (Brightsign). I'm constructing my own calls to GA and am having difficulty with the event logging. My page views come through just fine. Here's an example. Can anyone see what the issue…
panzhuli
  • 2,890
  • 6
  • 33
  • 46
0
votes
1 answer

Do I need to send all parameters with each hit using Google Analytics Measurement Protocol

I wonder if I need to send all parameters with each hit, or if some of the parameters are 'cached' in the current session. I.e. do I require to send the resolution, view port, etc. with each hit, or is it enough to send those once per session? I…
Gabriël
  • 1,323
  • 2
  • 22
  • 34
0
votes
2 answers

Landing Page Error on pushing Event

1. I'm trying to push Landing Page using Measurement Protocol API with PHP Library. I am using these…
Wasi
  • 50
  • 6
0
votes
3 answers

Send POST Batch Request From PHP

Measurement protocol docs give me these directions to send a batch request: POST /batch HTTP/1.1 Host:…
0
votes
0 answers

Object inherit variables from other class

I am working on a Google e-commerce tracking class in PHP. The intention of this class is to create url's to send with cURL to Google Analytics. I first create a transaction (url) with some parameters like:…
Robbert
  • 1,270
  • 6
  • 30
  • 62