简体   繁体   中英

Tracking javascript errors in Google Analytics but WITHOUT Google Tag Manager

I am trying to track javascript errors in Google Analytics (analytics.js) but without Google Tag Manager, since I am using another TMS.

I have tried the codes given by @lisburnite here : Logging javascript errors within Google Analytics

But they do not seem to trigger any errors hits. The question was from 2016, so any more recent codes?

Thanks !

As user mrded mentioned in the later answer in the post you referred to, are you sure you: 1. have jQuery loaded at the right moment 2. have jQuery with "$" loaded at all (and not with "jQuery" instead)

Did you try his code instead?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM