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.

Universal Analytics implementation (gtag.js API)

See original GitHub issue

Google recently started recommending one to track using gtag.js instead of analytics.js and I’m curious how this affects this project, if it affects it at all.

More information: https://developers.google.com/analytics/devguides/collection/gtagjs/migration

Asking this because the recommended way to install ga-lite from the README is a script similar to the old ways of setting up Google Analytics on our pages.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rfgamaralcommented, Nov 3, 2017

Well, to be honest, I decided to just conditionally load GA if not being crawled by Google PageSpeed Insights: https://github.com/rfgamaral/ricardoamaral.net/commit/a1613798f1c1434c571fc76ad554a3c324e471a9

0reactions
dejurincommented, Nov 18, 2021
Снимок экрана 2021-11-18 в 20 06 03 Google's new way doesn't solve the Web Core Vitals problem
Read more comments on GitHub >

github_iconTop Results From Across the Web

Google tag API reference | Google tag (gtag.js)
The Google tag (gtag.js) API consists of a single function, gtag() , with the ... here is an example that configures a tag...
Read more >
[UA→GA4] How gtag.js for UA maps to GA4 - Analytics Help
This is an implementation guide for website owners who use the gtag.js library and want to understand how gtag.js for Universal Analytics (UA)...
Read more >
Tracking Single Page Applications with Google Analytics
There's no magic here; GTM, analytics.js and gtag.js are just APIs for issuing page views and other hits, and the neat trick they've...
Read more >
How to use Gatsby's Script API with Google Analytics
Gatsby; React; JavaScript; Partytown; Google Analytics ... Below are links to a minimal example repository on GitHub, and a Gatsby Cloud ...
Read more >
What is gtag and why do I have to add that separately from ...
The global site tag (gtag.js) is a JavaScript tagging framework and API that allows you to send event data to Google Analytics, Google...
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