Hi Amr,
I must say this is a great plugin and one of the most neatest plugins in the WP directory.
I’m going to upgrade to Pro. However, I’d like to see a mutlisite support on this plugin and ability to restrict tabs to certain roles.
Keep up the great work ??
]]>Feature Request:
It seems that on some sites I manage, I get a lot of hits from the editor of the site causing a spike when they are preparing content. It would be great to have an option to exclude the analytics code whenever a user is logged in to the site.
https://www.ads-software.com/plugins/lara-google-analytics-dashboard-widget/
]]>Thanks for what is shaping up to be a great plugin! Integration and setup is quite easy.
I would like to see an option added that restricts viewing of analytics to users possessing a specific capability. Currently, subscribers to my site are able to view all analytics. I have hacked the plugin as follows for the time being, so that I can manage this via a filter.
Replaced Line 126 of lara-google-analytics-dashboard-widget-pro.php
:
if ( current_user_can( apply_filters( 'lrga_read_analytics', 'read' ) ) ) {
add_action( 'admin_notices', 'lrga_welcome_panel' );
}
Add following filter to control capability:
add_filter( 'lrga_read_analytics', 'twxyz_restrict_analytics' );
function twxyz_restrict_analytics( $cap ) {
return 'manage_options';
}
Note: This is the line number in the Pro Version.
https://www.ads-software.com/plugins/lara-google-analytics-dashboard-widget/
]]>