Title: Uncaught TypeError: $ is not a function
Last modified: April 21, 2022

---

# Uncaught TypeError: $ is not a function

 *  Resolved [thedrap](https://wordpress.org/support/users/thedrap/)
 * (@thedrap)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-is-not-a-function-11/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-is-not-a-function-11%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-is-not-a-function-11/#post-15585732)
 * 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](https://wordpress.org/support/users/thedrap/)
 * (@thedrap)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-is-not-a-function-11/#post-15590155)
 * 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.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [thedrap](https://wordpress.org/support/users/thedrap/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-is-not-a-function-11/#post-15590155)
 * Status: resolved