Email UTM
Categories
Component ID
2782021
Component name
Email UTM
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
164
Component created
Component changed
Component body
Automatically adds utm_source, utm_medium, utm_campaign, utm_term and utm_content query parameters to every URL in an email.
A UTM query parameters enable Google Analytics to tell you where searchers came from as well as what campaign directed them to you.
Requirements
This modules requires hook_mailkeys from Mail Editor to be implemented in modules. Example:
/**
* Implements hook_mailkeys().
*/
function hook_mailkeys() {
return array(
'page_mail' => t('Contact form message'),
'page_copy' => t('Contact form message copy'),
'page_autoreply' => t('Contact form message autoreply'),
'user_mail' => t('Contact user form message'),
'user_copy' => t('Contact user form message copy'),
);
}