You are here

function googleanalytics_update_6007 in Google Analytics 7.2

Same name and namespace in other branches
  1. 5 googleanalytics.install \googleanalytics_update_6007()
  2. 6.4 googleanalytics.install \googleanalytics_update_6007()
  3. 6 googleanalytics.install \googleanalytics_update_6007()
  4. 6.2 googleanalytics.install \googleanalytics_update_6007()
  5. 6.3 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: https://www.google.com/analytics/en-GB/tos.html

File

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

Code

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