• brett2000

    (@brett2000)


    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)
  • Same here. Maybe this is new google javascript code. I’m certain Joost will update this soon. ??

    Paul

    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.