• Resolved rhorny

    (@rhorny)


    I went through your entire document regarding the problems and I couldn’t solve it, I have this plugin on other sites and it works without problems there, but on this one I changed the php but still nothing, debug mode as well as off plugins and still nothing. It doesn’t show any statistics at all

    The page I need help with: [log in to see the link]

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    The forum editor broke the script, so I cleaned it up a bit, hope this works.

    Thread Starter rhorny

    (@rhorny)

    Its not working ??

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Do you see any errors in the debug log?

    Thread Starter rhorny

    (@rhorny)

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @rhorny
    I think the cleanup of the markup changes by the editor didn’t go well. Can you try the following:

    add_action( 'plugins_loaded', 'my_burst_install_statistics_table', 10 );
    function my_burst_install_statistics_table() {
    	require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    	global $wpdb;
    	$charset_collate = $wpdb->get_charset_collate();
    	$table_name = $wpdb->prefix . 'burst_statistics';
    	$sql  = "CREATE TABLE $table_name (
    	    ID int NOT NULL AUTO_INCREMENT ,
                page_url varchar(191) NOT NULL,
                time int NOT NULL,
                uid varchar(255) NOT NULL,
                time_on_page int,
                entire_page_url varchar(255) NOT NULL,
                page_id int NOT NULL,
                referrer varchar(255),
                browser varchar(255),
                browser_version varchar(255),
                platform varchar(255),
                device varchar(255),
                device_resolution varchar(255),
                session_id int,
                first_time_visit tinyint,
                bounce tinyint DEFAULT 1,
                  PRIMARY KEY  (ID),
                  INDEX time_index (time),
                  INDEX bounce_index (bounce),
                  INDEX page_url_index (page_url),
                  INDEX session_id_index (session_id),
                  INDEX time_page_url_index (time, page_url)
                ) $charset_collate;";
    
    	dbDelta( $sql );
    }
    Thread Starter rhorny

    (@rhorny)

    It works now ?? thank you and can I delete the code or should I leave it there

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Great!

    Best to remove it

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘No statistics (0)’ is closed to new replies.