Jquery and Google Tag Manager

前端 未结 3 1279
无人共我
无人共我 2020-12-20 17:39

I am having some problems implementing Google Tag Manager on my website. I have a Google code, and when I try it on my site, it makes a lot of javascript co

3条回答
  •  [愿得一人]
    2020-12-20 17:48

    Simo Ahava on the Google Tag Manager forums answered this type of question:

    Why jQuery might not be defined

    Basically, he says that GTM does not load jQuery by default.

    Even if your page does load it, the GTM tag that uses it might get triggered prior to the on page loading of jQuery.

    You can either make your jQuery code wait for the library to be loaded or load it within the custom HTML tag.

提交回复
热议问题