Download

Documentation

Print This page

Analytify Filters

Hide The Navigation Tabs In Analytify’s Dashboard

In the following method uncomment ( remove “//” ) from the items that you want to hide in the Analytify’s dashboard page. Each item represents the name of the navigation tab.

/**
* Hide the navigation tabs from the Analytify dashboard.
*
* @param array $tab_items
* @return array
*/
function analytify_hide_dashboard_tabs_cb( $tab_items )
{
// Add the names of items you want to hide.
$hide_tabs = array(
// 'Forms Tracking',
// 'Events Tracking',
// 'Campaigns',
// 'Goals',
// 'WooCommerce',
// 'EDD',
// 'Authors',
// 'Demographics',
// 'Search Terms',
// 'Dimensions',
// 'Real-Time',
// 'Conversions',
// 'Acquisition',
// 'Monetization',
// 'Engagement',
);
return $hide_tabs;
}
add_filter( 'analytify_hide_dashboard_tabs', 'analytify_hide_dashboard_tabs_cb' );

Stop The Animation In Analytify’s Dashboard

In the following method return false to stop the animation on the Analytify’s dashboard. The default value is true.

/**
* Control analytify dashboard header animation.
* Retrun true to play animation and false to prevent it.
*
* @param bool $condition
* @return bool
*/
function analytify_dashboard_head_animate_cb( $condition ) {
return false;
}
add_filter( 'analytify_dashboard_head_animate', 'analytify_dashboard_head_animate_cb' );

Change the “Go To Dashboard” Button’s URL in Email Report

Replace “your-url.com” in the following filter with own URL.

/**
* Filter email report dashboarl url.
*
* @param string $url
* @return string
*/
function analytify_email_dashboard_url_cb( $url ) {
$url = 'your-url.com';
return $url;
}
add_filter( 'analytify_email_dashboard_url', 'analytify_email_dashboard_url_cb' );

 

Remove Analytify HTML Comments From page source code view?

add_filter( 'analytify_tracking_code_comments', '__return_false' );