function googleanalytics_permission in Google Analytics 7.2
Same name and namespace in other branches
- 7 googleanalytics.module \googleanalytics_permission()
Implements hook_permission().
File
- ./
googleanalytics.module, line 57 - Drupal Module: Google Analytics
Code
function googleanalytics_permission() {
return array(
'administer google analytics' => array(
'title' => t('Administer Google Analytics'),
'description' => t('Perform maintenance tasks for Google Analytics.'),
),
'opt-in or out of tracking' => array(
'title' => t('Opt-in or out of tracking'),
'description' => t('Allow users to decide if tracking code will be added to pages or not.'),
),
'use PHP for tracking visibility' => array(
'title' => t('Use PHP for tracking visibility'),
'description' => t('Enter PHP code in the field for tracking visibility settings.'),
'restrict access' => TRUE,
),
'add JS snippets for google analytics' => array(
'title' => t('Add JavaScript snippets'),
'description' => 'Enter JavaScript code snippets for advanced Google Analytics functionality.',
'restrict access' => TRUE,
),
);
}