See trafic health of websites in the sites table

Hi,

I would like to know if solutions exists to get the trafic of each website into the global table.

Exemple :

I mean real trafic (Matomo or GA) and why not estimated SEO trafic (Semrush or alternative).

Thanks a lot

Hi @Webaxis

Welcome to the MainWP Community.

Unfortunately, we don’t currently offer an out-of-the-box solution for that.
But since MainWP is developer-friendly, and in case you would be so inclined, we invite you to build a custom solution.

You can find our MainWP Developer Resources at https://mainwp.dev/

1 Like

@Webaxis To add onto what @bojan has already suggested - This is how you may add a Custom Column to the Sites Table - however as he has already mentioned a custom script would need to be developed to grab the data to be displayed…

// Create custom column
add_filter( 'mainwp_sitestable_getcolumns', 'mycustom_mainwp_sitestable_getcolumns', 10, 1 );
function mycustom_mainwp_sitestable_getcolumns( $columns ) {
	$columns['customData'] = "Column Title";
	return $columns;
}

// Fill custom column data
add_filter( 'mainwp_sitestable_item', 'mycustom_mainwp_sitestable_item', 10, 1 );
function mycustom_mainwp_sitestable_item( $item ) {
    
    // Create custom script to create data & fill $customData variable...

	$item['customData'] = $customData;
    return $item;
}
2 Likes

OK, thanks, I will consider a custom dev for that.

Have a nice day

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.