Title: [Plugin: Google Analytics for WordPress] Try/Catch missing from code?
Last modified: August 19, 2016

---

# [Plugin: Google Analytics for WordPress] Try/Catch missing from code?

 *  [brett2000](https://wordpress.org/support/users/brett2000/)
 * (@brett2000)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-trycatch-missing-from-code/)
 * Hi,
 * Just did a view source, compared it to GA website code, found that the plugin
   is not putting the ‘try/catch’ into the code as follows:
    ———- try { var pageTracker
   = _gat._getTracker(“UA-XXXX-X”); pageTracker._trackPageview(); } catch(err) {}
 * Will it be added?
 * Thanks,
    -Brett

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

 *  [energymover](https://wordpress.org/support/users/energymover/)
 * (@energymover)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-trycatch-missing-from-code/#post-1001084)
 * Same here. Maybe this is new google javascript code. I’m certain Joost will update
   this soon. 🙂
 * Paul
 *  [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * (@joostdevalk)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-trycatch-missing-from-code/#post-1001089)
 * It is new indeed, but I’ll have to look as to whether I can include it like that,
   because of some of the customizations the plugin does in adding extra tracking
   stuff. I’ll dive into it! (rest assured: the code that’s in the plugin right 
   now works perfectly well in 99% of the cases, the only thing this new script 
   does is prevent javascript errors for the end user.)

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

The topic ‘[Plugin: Google Analytics for WordPress] Try/Catch missing from code?’
is closed to new replies.

 * 2 replies
 * 3 participants
 * Last reply from: [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-trycatch-missing-from-code/#post-1001089)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
