diff --git a/config/googleanalytics.settings.json b/config/googleanalytics.settings.json index 7350f26..d3454c7 100644 --- a/config/googleanalytics.settings.json +++ b/config/googleanalytics.settings.json @@ -25,7 +25,7 @@ "trackadsense": false, "trackdoubleclick": false, "tracker_anonymizeip": true, - "privacy_donottrack": true, + "privacy_donottrack": false, "custom_dimension": [], "custom_metric": [], "cache": false, diff --git a/googleanalytics.admin.inc b/googleanalytics.admin.inc index d448019..8c02884 100644 --- a/googleanalytics.admin.inc +++ b/googleanalytics.admin.inc @@ -281,7 +281,8 @@ function googleanalytics_admin_settings_form($form_state) { $form['tracking']['privacy']['googleanalytics_privacy_donottrack'] = array( '#type' => 'checkbox', '#title' => t('Universal web tracking opt-out'), - '#description' => t('If enabled and your server receives the Do-Not-Track header from the client browser, the Google Analytics module will not embed any tracking code into your site. Compliance with Do Not Track could be purely voluntary, enforced by industry self-regulation, or mandated by state or federal law. Please accept your visitors privacy. If they have opt-out from tracking and advertising, you should accept their personal decision. This feature is currently limited to logged in users and disabled page caching.', array('@donottrack' => 'http://donottrack.us/')), + '#description' => t('WARNING: Enabling this option will prevent the tracking code from appearing in Goole Chome.

+ If enabled and your server receives the Do-Not-Track header from the client browser, the Google Analytics module will not embed any tracking code into your site. Compliance with Do Not Track could be purely voluntary, enforced by industry self-regulation, or mandated by state or federal law. Please accept your visitors privacy. If they have opt-out from tracking and advertising, you should accept their personal decision. This feature is currently limited to logged in users and disabled page caching.', array('@donottrack' => 'http://donottrack.us/')), '#default_value' => $config->get('privacy_donottrack'), ); diff --git a/googleanalytics.install b/googleanalytics.install index bc11b1a..7725edf 100644 --- a/googleanalytics.install +++ b/googleanalytics.install @@ -113,3 +113,10 @@ function googleanalytics_update_1001() { update_variable_del('googleanalytics_codesnippet_after'); update_variable_del('googleanalytics_debug'); } + +/** + * Disable the problematic 'Universal web tracking opt-out' setting. + */ +function googleanalytics_update_1002() { + config_set('googleanalytics.settings', 'privacy_donottrack', FALSE); +}