Uncaught ReferenceError: ga is not defined

后端 未结 5 2028
野趣味
野趣味 2021-02-18 15:24

I want know how many times people clicked on a particular button (should be very simple with Google analytics). However, I had an \"Uncaught ReferenceError: ga is not defined\"

5条回答
  •  误落风尘
    2021-02-18 15:51

    I created a simple HTML with the same JS and click handler and ran it in my local apache server, it just works fine. Don't see any reference errors.

    Make sure you don't have AdBlocker or other software preventing tracking which might be blocking the GoogleAnalytics `

     
    
    
    

提交回复
热议问题