function ga_tokenizer_token_info in Google Analytics Tokenizer 7
Implements hook_token_info().
File
- ./
ga_tokenizer.module, line 55
Code
function ga_tokenizer_token_info() {
$types = array(
'ga_tokenizer' => array(
'name' => t('Google Analytics tokenizer tokens.'),
'description' => t('Tokens related with Google Analytics that are not provided by google_analytics module.'),
),
);
$ga_tokenizer['ga-source'] = array(
'name' => t('Source'),
'description' => t('Search engine, newsletter name, or other source.'),
);
$ga_tokenizer['ga-campaign'] = array(
'name' => t('Campaign'),
'description' => t('To identify a specific product promotion or strategic campaign.'),
);
$ga_tokenizer['ga-medium'] = array(
'name' => t('Medium'),
'description' => t('A medium such as email or cost-per-click.'),
);
$ga_tokenizer['ga-content'] = array(
'name' => t('Content'),
'description' => t('Used for A/B testing. To differentiate ads or links that point to the same URL.'),
);
$ga_tokenizer['ga-term'] = array(
'name' => t('Term'),
'description' => t('The keywords for the organic search or ad.'),
);
$ga_tokenizer['ga-first-visit'] = array(
'name' => t('First visit'),
'description' => t('Date/Time of initial visit.'),
);
$ga_tokenizer['ga-previous-visit'] = array(
'name' => t('Previous visit'),
'description' => t('Date/Time of previous visit.'),
);
$ga_tokenizer['ga-current-visit'] = array(
'name' => t('Current visit'),
'description' => t('Date/Time of current visit.'),
);
$ga_tokenizer['ga-times-visited'] = array(
'name' => t('Times visited'),
'description' => t('Total number of times visited.'),
);
return array(
'types' => $types,
'tokens' => array(
'ga_tokenizer' => $ga_tokenizer,
),
);
}