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.

Adds support for GA4 properties and load `gtag.js` instead of `analytics.js`

See original GitHub issue

I see that under the hood, @analytics/google-analytics loads analytics.js. With Google now making the gtag.js its official JavaScript tagging framework, any plan to update it with gtag?

Happy to contribute.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

13reactions
BingWangEdcommented, Nov 30, 2020

Just a headsup that I’m still working on this. Need some more time. But I’m on it~

9reactions
jjoyce0510commented, Apr 21, 2021

Bumping the thread. Do we know how big a lift this will be?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[UA→GA4] Tips for switching from analytics.js to gtag.js
To enable basic data collection for your Google Analytics 4 property, add the gtag. js snippet (the Google tag) to the <head> section...
Read more >
Migrate from analytics.js to gtag.js (Universal Analytics)
This guide walks you through the process of migrating an existing analytics.js Universal Analytics implementation to use gtag.js .
Read more >
new GTAG.js Analytics code (replaces Analytics.js code)
Additionally, Google has no upgrade path for analytics.js events to gtag.js events. So if you're a user who implemented events and didn't use...
Read more >
gtag.js - Global Site Tag in Google Analytics - Tutorial
Unlike ga.js or analytics.js, it is not strictly a Google Analytics Library as it is supporting Google Adwords Conversion tracking and will ...
Read more >
Get started with Google Analytics - Firebase
On this page; Before you begin; Add the Analytics SDK to your app. Use Firebase with existing gtag.js tagging. Start logging events; Next...
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