About 50 results
Open links in new tab
  1. gtag.js - What is gtag and why do I have to add that separately from ...

    Feb 13, 2020 · Use gtag if you want to send data to supported Google products other than Google Analytics. As you pointed out, "The global site tag (gtag.js) is a JavaScript tagging framework and …

  2. How can I track and send custom events with the new Google Analytics …

    May 12, 2022 · How can I track and send custom events with the new Google Analytics 4 (gtag.js)? Asked 3 years, 11 months ago Modified 2 years, 3 months ago Viewed 25k times

  3. How can I extract gtag ( 'consent' ) values? - Stack Overflow

    Feb 28, 2024 · Following Google instructions I am setting consent on a website I am working on. I am able to set gtag() consent through GTM and everything else, I was wondering: how do I get back the …

  4. Google Analytics Web+App event config: Error 'gtag is not defined'

    Apr 5, 2020 · For anyone struggling with using GA4 gtag and GTM (Google Tag Manager) simultaniously in your SPA/Angular/React app, you should do next: don't use built-in GTM's "Google …

  5. Google Analytics Gtag Multiple Analytics Account Tracking IDs

    From what I can see Google seem to be phasing out analytics.js now in favor of their tag manager. How do I fire google analytics new gtag tracking code for multiple analytics accounts? Something ...

  6. Call gtag_report_conversion on button click - Stack Overflow

    Mar 29, 2021 · Call gtag_report_conversion on button click Asked 5 years, 1 month ago Modified 4 years, 4 months ago Viewed 9k times

  7. reactjs - Adding Google Analytics to React - Stack Overflow

    Mar 14, 2018 · The simplest way to get started is to follow Google's guide: include gtag on the page and use it as window.gtag. This method works for both old and new tags and there's even TypeScript …

  8. Setting up user id in Google analytics with Google tag (gtag.js)

    Mar 31, 2025 · I see that in similar questions asked here there can be issues of mismatches between Universal Analytics, GA4 (and even earlier systems) and gtag.js. Both Universal Analytics and GA4 …

  9. How to avoid issue related to Google Tag Manger in page speed to ...

    Jul 15, 2021 · Google Tag Manager is a performance impediment by definition. Its only purpose is to allow non-technical people to dump random garbage very important third-party scripts on a site. If …

  10. google analytics - How to use both gtag config and GTM GA4 ...

    Sep 15, 2023 · It appears the issue is with the configuration being implemented in both GTM and via gtag config. Duplicate tracking is exacerbated by the "enhanced event measurement" enabled on the …