You are here

function googleanalytics_update_6007 in Google Analytics 5

Same name and namespace in other branches
  1. 6.4 googleanalytics.install \googleanalytics_update_6007()
  2. 6 googleanalytics.install \googleanalytics_update_6007()
  3. 6.2 googleanalytics.install \googleanalytics_update_6007()
  4. 6.3 googleanalytics.install \googleanalytics_update_6007()
  5. 7.2 googleanalytics.install \googleanalytics_update_6007()
  6. 7 googleanalytics.install \googleanalytics_update_6007()

Remove "User identifier" and "User name" from segmentation fields.

This is a data protection and privacy law change. For more information see Google Analytics terms of use section 8.1 (http://www.google.com/analytics/en-GB/tos.html).

File

./googleanalytics.install, line 235
Installation file for Google Analytics module.

Code

function googleanalytics_update_6007() {
  $ret = array();
  $profile_fields = variable_get('googleanalytics_segmentation', array());
  unset($profile_fields['uid']);
  unset($profile_fields['name']);
  variable_set('googleanalytics_segmentation', $profile_fields);
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Removed "User identifier" and "User name" from segmentation fields.',
  );
  return $ret;
}