question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

analytics.track payload for GA

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DavidWellscommented, Aug 1, 2019

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

1reaction
DavidWellscommented, Aug 16, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found