• Resolved thedrap

    (@thedrap)


    DISCLAIMER: I have been trying to search everywhere before posting but couldn’t find any answer. My apologies if the question is a duplicate.

    Hello all,
    I am trying to implement GTM4WP for a new Woocommerce site and I noticed in my console the following error.

    Uncaught TypeError: $ is not a function
    at <anonymous>:1:187
    at gtm.js?id=GTM-xxxx:440:414
    at b (gtm.js?id=GTM-xxxx:441:337)
    at se (gtm.js?id=GTM-xxxx:87:769)
    at e (gtm.js?id=GTM-xxxx:211:34)
    at gtm.js?id=GTM-xxxx:37:130
    at Array.<anonymous> (gtm.js?id=GTM-xxxx:212:454)
    at Object.execute (gtm.js?id=GTM-xxxx:212:194)
    at As (gtm.js?id=GTM-xxxx:309:1124)
    at Js (gtm.js?id=GGTM-xxxx:314:20)

    I am not sure if it’s a race condition, i.e. if gtm is trying to load when jquery is not yet loaded. This happens pretty quick in the console sequence.

    Thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Please check your GTM container itself and look for custom HTML tags. There is a JS code inside such a custom HTML tag that generates this error message. It is not directly related to GTM4WP.

    Thread Starter thedrap

    (@thedrap)

    Hi Thomas! You are such a rock star my friend. Developing the plugin and ALWAYS having time to answer questions that for you might be basic but for us are blockers.

    I went indeed and paused a bunch of tags that were doing complex things and the code was probably buggy or outdated and the java script error went away. 100% I didn’t realize that it was a code error and not a GTM issue.

    Thanks so much!

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

The topic ‘Uncaught TypeError: $ is not a function’ is closed to new replies.