2

Not sure how to choose to set $env_config['disable_all_tracking'] = 'y' or 'no'; When documentation says if set to 'y' some of the below settings are disregarded

/* Tracking
-------------------------------------------------------------------*/
$env_config['disable_all_tracking']        = 'y'; // If set to 'y' some of the below settings are disregarded
$env_config['enable_sql_caching']          = 'n';
$env_config['disable_tag_caching']         = 'n';
$env_config['enable_online_user_tracking'] = 'n';
$env_config['dynamic_tracking_disabling']  = '500';
$env_config['enable_hit_tracking']         = 'n';
$env_config['enable_entry_view_tracking']  = 'n';
$env_config['log_referrers']               = 'n';
$env_config['gzip_output']                 = 'y'; 

Thanks in advance for great support

2
  • Hi Dorothy ... What is the question exactly? Can you clarify? Commented Jan 27, 2013 at 3:48
  • The default in this published masterconfig is $env_config['disable_all_tracking'] = 'y'; Commented Jan 27, 2013 at 6:21

1 Answer 1

5

I'm still not certain what your overall question is, but I can explain $env_config['disable_all_tracking'] = 'y';.

$env_config['disable_all_tracking']        = 'y';

Is part of ExpressionEngine's option for Handling Extreme Traffic. If you disable_all_tracking then you do not have to individually set the options for:

$env_config['enable_online_user_tracking'] = 'n';
$env_config['dynamic_tracking_disabling']  = '500';
$env_config['enable_hit_tracking']         = 'n';
$env_config['enable_entry_view_tracking']  = 'n';
$env_config['log_referrers']               = 'n';

These disable_all_tracking option is generally set to 'n', but if your basing it off a master config that is trying to maximize performance, then it would be set to yes.

These options are best used for traffic spikes or sites that are constantly hit heavily. For your average site, having tracking on is fine, and will provide you with a variety of information that can be used to help you measure the site's success.

But, many of these details are also provided by Google Analytics (GA) and content delivery networks (CDN), such as CloudFlare. So as long as your site is configured to use an analytics program, those details are still available to you, just not via the control panel.

Some developers leave this variables on by default, and I know others turn them off by default, so that is up to you for the site your building or managing.

Also if you need to deal with heavy traffic sites or just want to make a site that performs better, add Solspace's Website Performance Guidelines to your reading list, and take a look at some of their performance enhancing add-ons. You can also take a look at Matt Perry's Make EE Faster presentation.

3
  • I'm using GA and Cloudflare. Fantastic explanation. I definitely need to set disable_all_tracking option to "n" Commented Jan 27, 2013 at 9:06
  • Just to make sure, the 'no' keeps tracking on, and the 'yes' turns it off. It's just that you used the word 'definitely', which made me think you had a high traffic site, but then you said, set to 'no'. Commented Jan 27, 2013 at 9:20
  • Followed your advice and site is so fast as a result it's smoking. Thanks. Commented Jan 28, 2013 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.