• Resolved AleMaciell

    (@alexandre-maciel)


    Hey guys o/

    The plugin displays the following error when you enable the scroll function, and does not load anything in google analytics.

    Can someone help me?

    Site Link: http://edcoracao.com.br/

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter AleMaciell

    (@alexandre-maciel)

    Error:

    ga-scroll-events.js?ver=2.5.1:51 Uncaught ReferenceError: gtag is not defined
    at track_event (ga-scroll-events.js?ver=2.5.1:51)
    at ga-scroll-events.js?ver=2.5.1:157
    at dispatch (jquery.js?ver=1.12.4:3)
    at r.handle (jquery.js?ver=1.12.4:3)
    track_event @ ga-scroll-events.js?ver=2.5.1:51
    (anonymous) @ ga-scroll-events.js?ver=2.5.1:157
    dispatch @ jquery.js?ver=1.12.4:3
    r.handle @ jquery.js?ver=1.12.4:3

    Plugin Author yuvalo

    (@yuvalo)

    Hi @alexandre-maciel,

    I can see that you checked the Global Site Tag box in the General Settings but your page is using the Universal Tracking code page.

    Try to uncheck the Global Site Tag box and make sure that Universal is checked and check again.

    Yuval

    Plugin Author yuvalo

    (@yuvalo)

    Marking this ticket as resolved due to inactivity. feel free to reopen in case the problem persists.

    I’m new to this add-in and have the same issue… “gtag” is not defined.

    I’m having a hard time understanding the semantic difference between “Global” and “Universal” Site Tag Box. Seems either adjective suggests it applies everywhere???

    I can’t find either in any of the settings tabs: “Edit Script”, “Manager”, “Settings”, or “Docs & FAQ”.

    Plugin Author yuvalo

    (@yuvalo)

    Hi @samckayak

    Over the years, Google has been changing their tracking code and giving it new names.
    For a while, what is called the Universal tracking code was used an that is the reason that it is the default option in the plugin. No so long ago, they launched the new code, Global Site Tags and made it the default for new Google Analytics installations.

    Our plugin supports the Global Site Tags code, but in the current version, requires you to manually add it to your website, either by a theme or another Google Analytics plugin.
    Once you add the Global Site Tags code to the site, you can enable it on our plugin.

    The next, overdue version of our plugin will default to using the Global Site Tags code.

    Hope that clears things up for the moment.

    Yuval

    We have other issues . Server returns an error when we try to update scripts .

    Plugin Author yuvalo

    (@yuvalo)

    @samckayak, can you tell me which scripts?

    The problem I have at the moment is the server returns an error if I edit/modify any of the scripts or change “whole website” to “specific pages”. “403 Forbidden”

    Do you have any insight into this issue?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error Uncaught ReferenceError: gtag is not defined’ is closed to new replies.