analytics.track payload for GA
See original GitHub issueI’m currently tracking events and have the GA plugin added, but I’m having trouble finding the payload values when browsing events within my GA dashboard. Looking at the GA plugin I’m seeing that it expects label
, value
, category
in the payload (not any key:values we want). Is that correct? I’m somewhat new to the GA interface so I apologize in advance if the data is there and I’m just not finding it. My code looks like this:
analytics.track('chooseStackOption', {
type: 'framework',
option: 'next.js'
});
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Analytics Measurement Protocol - Google Developers
There are 2 parts to send data to Google Analytics using the Measurement Protocol: The transport – to where and how you send...
Read more >Send Google Analytics Payload Length As Custom Dimension
Send Google Analytics Payload Length As Custom Dimension · 8192 bytes · 8000 bytes ...
Read more >GA4 (Google Analytics 4) Measurement Protocol Tutorial
Payload data is the data you send to the Google Analytics server using the measurement protocol. As you can see, the payload data...
Read more >Google Analytics hit payload length limit 8000 bytes
Google Analytics hit payload length limit 8000 bytes · About the blog · Latest posts · Analytics consultation and implementation services · Categories...
Read more >Intro to the Google Analytics Measurement Protocol - Humix
All GA tracking systems (analytics.js, GTM, App SDKs, etc.) use the same standard set of rules for collecting and sending hits to the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good point. I will update the docs.
There is some additional work to be done with the GA plugin to support custom dimensions and stuff as well.
Right now those can all be handled with raw ‘ga’ calls in the code
Hey @slidenerd
The google analytics plugin uses the regular google analytic script
https://github.com/DavidWells/analytics/tree/master/packages/analytics-plugin-ga
If you want to use google tag manager script instead you can use that plugin https://github.com/DavidWells/analytics/tree/master/packages/analytics-plugin-google-tag-manager
Just depends on your setup.
I prefer the simpler “just google analytics” setup myself because I like keeping my js in my app instead of hidden in gtag manager tags