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
4
votes
2 answers

Google Analytics - iOS Install Tracking

I'm currently working a project that is using Google Analytics to track various things throughout the application. One of the last things I want to do is track application installs based on some kind of promotion for the application. After some…
4
votes
1 answer

Custom dimensions not tracked in Google Analytics HTTP requests (Measurement Protocol)

When using analytics.js, I can successfully track events including custom dimensions this way (as described in the docs): ga('send', 'event', 'category', 'action', { 'metric18': 8000, 'dimension6': 'crocodile' }); However, when using the…
4
votes
2 answers

Google Analytics Measurement protocol event tracking : events not logging

I am trying to use Google Analytics Measurement protocol (available with Universal Analytics) to track an offline event. I am using the documentation here : https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#event…
user3429942
  • 61
  • 1
  • 3
3
votes
0 answers

Why are users not being reported while events are reported in GA4

In my situation, some conversion events happen offline. For example, user visits a website, then books a meeting via calendly (I generate a user_id based on the email provided and save to CRM), then at some later point (maybe a few weeks later),…
New Dev
  • 48,427
  • 12
  • 87
  • 129
3
votes
1 answer

How to send custom dimensions, medium, source or referer with an event via Measurement Protocol V2?

With v1 of the measurement protocol, you could use these parameters to add custom dimensions or change medium, source or refer for a page view: https://ssl.google-analytics.com/collect?v=1&tid=UA-xxxxxxxx&cid=[custom-id]&t=pageview&dp=[Url of…
Werner
  • 1,695
  • 3
  • 21
  • 42
3
votes
1 answer

GA4 Events show up in Realtime but not in Engagement/Events

I'm sending events with google measurement protocol for Google Analytics 4. The JSON Body i'm sending looks like: { "clientId":"14324532860.16532452526", "events":[ { "name":"Monitor_Backend", "params":{ …
3
votes
2 answers

Google measurement protocol losing acquisition data

How do I make sure that customer purchases tracked using the Measurement Protocol retain their association with the original Google Analytics session? Detail: When my site stopped registering customer purchases in Google Analytics (a whole other…
dartacus
  • 654
  • 1
  • 5
  • 16
3
votes
1 answer

Where does gtag pageview's 'page_location' get reported?

I'm using the Google Analytics's gtag.js on a single-page webapp (SPA). As suggested in the docs for SPAs, I've disabled the automatic send_page_view and instead explicitly send a page view by setting a page_path and page_title to the gtag config.…
Jeff G
  • 908
  • 8
  • 18
3
votes
1 answer

Sending http requests with Openresty to Google Analytics

I have been using openresty/nginx+lua to send server-side hits to Google Analytics Measurement Protocol. However, the function I'm using (ngx.location.capture) is incompatible with HTTP/2 and a "won't fix" issue. Apparently, the way to go is to use…
lucian
  • 623
  • 10
  • 21
3
votes
1 answer

Google Anytics without javascript

We want to track the utm_source and utm_medium on Google Analytics on one of our clients site. We also want to get the conversion of the ad. We can: ga('send', 'pageview'); //Using our tracking number This would work perfectly but our client will…
user10074403
3
votes
1 answer

google analytics send custom data about user from backend using measurements protocol

I want to send data about users to GA from my backend (e.g. status, age, gender, ...) I have already figured out how to do this for events, but I am not sure how to send data that is not related to a session/event, but is rather a simple attribute…
Chris
  • 13,100
  • 23
  • 79
  • 162
3
votes
0 answers

Can I send data to Google Analytics Measurement Protocol from Amazon Elastic Beanstalk application?

I have a website running on AWS Elastic Beanstalk (64bit Amazon Linux 2017.03 v2.5.0 running PHP 7.0). Is there an app or service I can run on this server to automatically send all hits etc to Google Analytics using the Measurement Protocol? I want…
3
votes
0 answers

Tracking offline purchases with Enhanced Ecommerce and Measurement Protocol

We've deployed Google Analytics Enhanced Ecommerce to better track our sales. Everything's working great except that some of our transactions are paid offline. We were already using the "standard" ecommerce analytics and this had been solved by…
3
votes
0 answers

Measurement protocol transactions from Google Analytics to Google AdWords

I am correctly sending enhanced e-commerce transactions to Google Analytics via the measurement protocol. In Google Analytics, these transactions get attributed to the correct source / medium of the session in which these transactions actually…
3
votes
0 answers

How to trigger mobile web visits in Google Measurement Protocol

I'm using Google Measurement Protocol to trigger views in GA. I'm wondering how to trigger pageviews from mobile web (not mobile apps). I've checked documentation and there's no mention of differentiating desktop, mobile or tablet. I assumed it…
Jon
  • 452
  • 4
  • 23