• Resolved Ales

    (@alesmal)


    Hello, I am author of CMP – Coming soon & Maintenance plugin and we would like to itegrate Jetpack stats in our landing pages.

    Now, since we ‘hijack’ default WordPress template and replace it with our custom template, which does not use wp_head() and wp_footer() hooks, your analytics code or a function is not probably executed correctly on our templates.

    Is there a specific Jetpack hook or a function, we could use on our templates without using wp_head() and wp_footer() hooks?

    thanks Ales

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Karen Attfield

    (@wpkaren)

    Hi @alesmal

    Thanks for your question and great to hear you’d like to integrate Jetpack stats to your landing pages!

    If you have your own hook in your plugin landing page templates, you may be able to try something like this:

    add_action( 'wp_footer', 'stats_footer', 101 );

    This is referenced in stats.php here.

    Would this work for you?

    Thread Starter Ales

    (@alesmal)

    Thanks @wpkaren , that worked flawlessly ??

    Ales

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CMP plugin & JetPack stats’ is closed to new replies.