You are here

function googleanalytics_install in Google Analytics 6.2

Same name and namespace in other branches
  1. 5 googleanalytics.install \googleanalytics_install()
  2. 6 googleanalytics.install \googleanalytics_install()
  3. 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));
}