• Resolved PIX GEEKS

    (@pixgeeks)


    Hi

    I think there is a bug in “auto-load-next-post/assets/js/frontend/auto-load-next-post.min.js” :

    function update_google_analytics() {
    	/*
    	if ( typeof pageTracker === "undefined" || typeof _gaq === 'undefined' || typeof ga === 'undefined' || typeof __gaTracker === 'undefined' ) {

    I think operator should be && and not ||
    When changing it everything is fine again ??

    https://www.ads-software.com/plugins/auto-load-next-post/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sébastien Dumont

    (@sebd86)

    How do you have your Google Analytics setup on your site?

    Thread Starter PIX GEEKS

    (@pixgeeks)

    Through Yoast Plugin

    Plugin Author Sébastien Dumont

    (@sebd86)

    I will check it out. Thank you.

    Aishwarya Taneja

    (@aishwaryataneja85)

    After Changing this part of code in “auto-load-next-post/assets/js/frontend/auto-load-next-post.min.js” this file

    update_google_analytics())),auto_load_next_post()}function update_google_analytics(){if(“undefined”===typeof pageTracker||”undefined”===typeof _gaq||”undefined”===typeof ga||”undefined”===typeof __gaTracker)return void console.error(“Google Analytics is not installed!”);

    To this new code,

    update_google_analytics())),auto_load_next_post()}function update_google_analytics(){if(“undefined”===typeof pageTracker&&”undefined”===typeof _gaq&&”undefined”===typeof ga&&”undefined”===typeof __gaTracker)return void console.error(“Google Analytics is not installed!”);

    I got google analytics working.

    It must be updated as told by PIX GEEKS.

    Plugin Author Sébastien Dumont

    (@sebd86)

    I have created an issue for this on the GitHub repository.

    @aishwarya Taneja If you wish to contribute to the plugin please follow the CONTRIBUTION GUIDE

    Plugin Author Sébastien Dumont

    (@sebd86)

    Fix has been applied. Closing this topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Bug in Google Analytics tracking’ is closed to new replies.