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.

GA4 trackingId -> measurementIds

See original GitHub issue

In Google Analytics 4, they have changed terminology from “tracking ID” to “measurement ID”, and you can seemingly load multiple of them. It would be nice if the configuration key for GA4 was called measuremendIds instead of trackingId for consistency.

See https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/google-analytics-4/lib/index.js for inspiration.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidWellscommented, Jun 21, 2022

Good call. Updated to allow for custom dataLayerName and custom gtag name https://github.com/DavidWells/analytics/commit/6c41881b997b249f542d5ae2b928f8bd4fd0bd5c

0reactions
afgallocommented, Jul 3, 2022

Hi @DavidWells,

I was just wondering if you could help with my comment on #270? I know I must be doing something wrong 🤦🏻‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Google Analytics Measurement ID (GA4)
A GA4 property uses a Measurement ID and not a Tracking ID. In order to set up any ... Measurement IDs are the...
Read more >
[GA4] Tracking ID support - Analytics Help
Explore the Google Analytics 4 tracking ID support guide to learn about common tracking problems, troubleshooting steps, and updates.Google Analytics 4 ...
Read more >
How to add Google Analytics to a website - Webflow
An image of the Google Universal Analytics Tracking ID in Webflow. ... you to manage all these custom Google Analytics measurement IDs, ...
Read more >
Track Your Business Card in Google Analytics | Blog - HiHello
Measurement IDs identify the data stream sending data to your GA4 property. If you use UA, you'll need to find a Tracking ID....
Read more >
6 steps to configure Firebase Analytics tracking
The question now is where the GA account should be created under your Google ... we return different Google Analytics Measurement IDs.
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