function googleanalytics_install in Google Analytics 5
Same name and namespace in other branches
- 6 googleanalytics.install \googleanalytics_install()
- 6.2 googleanalytics.install \googleanalytics_install()
- 7 googleanalytics.install \googleanalytics_install()
@file Installation file for Google Analytics module.
File
- ./
googleanalytics.install, line 8 - Installation file for Google Analytics module.
Code
function googleanalytics_install() {
variable_set('googleanalytics_visibility', 0);
// Remove tracking from all administrative pages, see http://drupal.org/node/34970.
$pages = array(
'admin',
'admin/*',
'user/*/*',
'node/add*',
'node/*/*',
);
variable_set('googleanalytics_pages', implode("\n", $pages));
}