Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    Yes, you can tell WPP to track only certain post type(s) using the wpp_trackable_post_types filter. Add this to your theme’s functions.php file:

    /*
     * Have WPP track only 'post' post types page views, ignore the rest
     */
    function my_trackable_post_types( $post_types ){
        $track_these_post_types_only = array( 'post' );
        return $track_these_post_types_only;
    }
    add_filter( 'wpp_trackable_post_types', 'my_trackable_post_types', 10, 1 );
    Thread Starter kranzoky

    (@kranzoky)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Turn of counting on pages?’ is closed to new replies.