• Hi. Would you be able to make the analytics code work with Yoast Analytics plugin too?

    Yoast uses __gaTracker() instead of ga().

    Checking if __gaTracker is defined or not would enable it to work whether people are using Yoast Analytics or not. Like this:

    <script>if (typeof __gaTracker !== ‘undefined’) {
    __gaTracker(‘send’, ‘event’, ‘category’, ‘action’, ‘label’);
    }else{ ga(‘send’, ‘event’, ‘category’, ‘action’, ‘label’);} </script>

    Would that work?

    https://wordpress.org/plugins/wbounce/

  • The topic ‘Suggestion: Make Analytics work with Yoast too’ is closed to new replies.