• Causes a JS error because it outputs the following code when jQuery isn’t defined:

    jQuery(document).ready(function () {
      jQuery(window).on('load',function () {
      });
    });

    Why does it output an empty function? Who knows. Why does it need jQuery here at all? No reason. I submitted a support request and suggested a fix some time ago, but it is still an issue.

Viewing 1 replies (of 1 total)
  • hi @swinggraphics,

    thanks for your feedback! We are very sorry for the problems you had.

    The output inside document ready is conditional, however these lines are always outputted, that is why it is empty.

    We are aware about this issue and we have updated the plugin but haven’t released the new version yet. Right now it is in testing and will be released next week, most probably on Tuesday. It is a major update with the following changelog as well.

    = 1.1.0 =
    Changed: Improved UX of authentication
    Changed: Google API PHP Client library updated to the latest 2.2.0 version
    Changed: WD library updated to version 1.0.10
    Fixed: Fatal errors when WordPress could not establish secure connection with Google Analytics API
    Fixed: Escaping of custom tracking code
    Fixed: PHP notices in pages without global $post variable

    Meanwhile to avoid this error, you may place the jQuery script above this to make sure jQuery is defined.

Viewing 1 replies (of 1 total)
  • The topic ‘Decent, but but unresolved JS error’ is closed to new replies.