GatsbyJS & GA4: Upgrading a Gatsby Site to Google Analytics 4

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 13

  • @kosisochukwuafoenyi5962
    @kosisochukwuafoenyi5962 2 года назад

    Thank you very much, you really helped me out. I couldn't find this information anywhere.

  • @blarz2012
    @blarz2012 3 года назад

    This is a gold mine. I needed this. Thanks for sharing!

  • @user-by5kd1iu2b
    @user-by5kd1iu2b 10 месяцев назад

    When applying the gatsby-plugin-google-gtag plug-in, it must be applied at the top of the plug-in plug-in list to work well.
    I kept thinking about it because the data stream wasn't analyzed, but the plug-in order was important

  • @CoryMckinnonHandle
    @CoryMckinnonHandle Год назад

    Followed this to the T and still no analytics. Am getting a 307 status for the gtag. I think the plugin might be pushing out javascript that is preventing the gtag to be communicated? "if(true) {
    window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-4XJYSFRSR9', {"send_page_view":false}); }". I don't know if something broke in the plugin?

  • @amalitsky
    @amalitsky Год назад

    Do you know what is the reason/benefit of using gatsby-route-chage event instead of native page_view?

  • @singerabantika2044
    @singerabantika2044 3 года назад

    Hi, that was very useful. It was superb. I loved your lucid explanation. It will be nice if you can make another video about how to handle custom events like click etc. using this plugin.

    • @GuidingDigital
      @GuidingDigital  3 года назад

      Thanks. I'll add that to my list of potential future videos.

    • @singerabantika2044
      @singerabantika2044 3 года назад

      @@GuidingDigital Thanks a lot for considering that.

  • @zulzdn9348
    @zulzdn9348 3 года назад +1

    how to set up converttion for google ads

    • @zine51c
      @zine51c 2 года назад

      Same here

  • @malloryreese-bagley367
    @malloryreese-bagley367 2 года назад

    At @Guiding Digital thank you, thank you, thank you. This was great. As a non-developer, I can easily pass this along to my dev team to help them through the needed changes.
    Question: are there any problems with keeping the gatsby-plugin-google-analytics plugin (for our old universal analytics properties) and then using g-tag for our new unified GA4 properties?
    We have a bunch of custom configuration set-up using the gatsby-plugin-google-analytics plugin that I'd prefer to not touch (our plan is to depreciate our universal analytics properties after we have 13 months of data in our new GA4 property), but not sure if it's possible to use the gatsby-plugin-google-gtag and the gatsby-plugin-google-analytics plugin at the same time?

    • @patrickthomas1647
      @patrickthomas1647 2 года назад

      UA and new GA4 implementations should operate in tandem without issue I think!