function googleanalytics_update_6007 in Google Analytics 6.2
Same name and namespace in other branches
- 5 googleanalytics.install \googleanalytics_update_6007()
- 6.4 googleanalytics.install \googleanalytics_update_6007()
- 6 googleanalytics.install \googleanalytics_update_6007()
- 6.3 googleanalytics.install \googleanalytics_update_6007()
- 7.2 googleanalytics.install \googleanalytics_update_6007()
- 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 255 - 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;
}