Support » Plugin: Koko Analytics » Koko Analytics compatible with Coming Soon & Maintenance pages

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @artgoddess,

    I don’t know, sorry. But you can safely try and let us know here? I do not have time to test compatibility with any plugin out there but I would be happy to help on any reported issues if you find it doesn’t work.

    Thread Starter ArtGoddess

    (@artgoddess)

    Many thanks @dvankooten for your answer.

    I’m afraid it doesn’t work out of the box. Is there any code or function to be used in the page or in functions.php? Thanks again.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @artgoddess,

    I took a closer look at the mentioned plugin and it seems you will need to print the Koko Analytics tracking script manually. This isn’t easy to do in the current version of Koko Analytics but once we release the next plugin update, you can do the following:

    
    add_action( 'cmp-before-footer-scripts', function() {
    	if (function_exists('koko_analytics_tracking_script')) {
    		koko_analyics_tracking_script();
    	}
    } );
    

    Please note that you can already include this code snippet in your theme its functions.php file, it just won’t work until we release the next plugin update (but won’t throw an error either).

    I hope that helps.

    Thread Starter ArtGoddess

    (@artgoddess)

    Nice!! I have just added it. In case it doesn’t work after the update, I will let you know. Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Koko Analytics compatible with Coming Soon & Maintenance pages’ is closed to new replies.