Filter Reference: geodir_google_analytic_settings
Summary
Filter GD Google Analytic Settings array.
Package
GeoDirectory
Change Log
Since: 1.0.0
Used by
geodirectory-admin/option-pages/general_settings_array.php: [Line: 114]
Source Code
$google_analytic_settings = apply_filters('geodir_google_analytic_settings', array( array('name' => __('Google Analytics', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'google_analytic_settings'), array('name' => __('Google Analytic Settings', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'google_analytic_settings'), array( 'name' => __('Show business owner google analytics stats?', 'geodirectory'), 'desc' => __('Yes', 'geodirectory'), 'id' => 'geodir_ga_stats', 'std' => '0', 'type' => 'radio', 'value' => '1', 'radiogroup' => 'start' ), array( 'name' => __('Show business owner Google Analytics stats?', 'geodirectory'), 'desc' => __('No', 'geodirectory'), 'id' => 'geodir_ga_stats', 'std' => '1', 'type' => 'radio', 'value' => '0', 'radiogroup' => 'end' ), array( 'name' => __('Google analytics access', 'geodirectory'), 'desc' => '', 'id' => 'geodir_ga_token', 'type' => 'google_analytics', 'css' => 'min-width:300px;', 'std' => '' // Default value for the page title - changed in settings ), array( 'name' => __('Google analytics Auth Code', 'geodirectory'), 'desc' => __('You must save this setting before accounts will show.', 'geodirectory'), 'id' => 'geodir_ga_auth_code', 'type' => 'text', 'css' => 'min-width:300px;', 'std' => '' // Default value for the page title - changed in settings ), array( 'name' => __('Analytics Account', 'geodirectory'), 'desc' => __('Select the account that you setup for this site.', 'geodirectory'), 'id' => 'geodir_ga_account_id', 'css' => 'min-width:300px;', 'std' => 'gridview_onehalf', 'type' => 'select', 'class' => 'chosen_select', 'options' => geodir_gd_accounts() ), array( 'name' => __('Add Google analytics tracking code to site?', 'geodirectory'), 'desc' => __('Yes (this will automatically add the correct tracking code to your site)', 'geodirectory'), 'id' => 'geodir_ga_add_tracking_code', 'std' => '0', 'type' => 'radio', 'value' => '1', 'radiogroup' => 'start' ), array( 'name' => __('Add Google analytics tracking code to site?', 'geodirectory'), 'desc' => __('No (if you already have tracking code added you should not add it again)', 'geodirectory'), 'id' => 'geodir_ga_add_tracking_code', 'std' => '1', 'type' => 'radio', 'value' => '0', 'radiogroup' => 'end' ), array( 'name' => __('Anonymize user IP?', 'geodirectory'), 'desc' => __('In most cases this is not required, this is to comply with certain country laws such as Germany.', 'geodirectory'), 'id' => 'geodir_ga_anonymize_ip', 'type' => 'checkbox', 'std' => '0' ), array( 'name' => __('Auto refresh active users?', 'geodirectory'), 'desc' => __('If ticked it uses the auto refresh time below, if not it never refreshes unless the refresh button is clicked.', 'geodirectory'), 'id' => 'geodir_ga_auto_refresh', 'type' => 'checkbox', 'std' => '0' ), array( 'name' => __('Time interval for auto refresh active users', 'geodirectory'), 'desc' => __('Time interval in seconds to auto refresh active users. The active users will be auto refreshed after this time interval. Leave blank or use 0(zero) to disable auto refresh. Default: 5', 'geodirectory'), 'id' => 'geodir_ga_refresh_time', 'type' => 'text', 'std' => '5' ), array('type' => 'sectionend', 'id' => 'google_analytic_settings'), )); // google_analytic_settings End