function google_adwords_add_tracking in Google AdWords Conversion Tracking 7
Same name and namespace in other branches
- 7.2 google_adwords.module \google_adwords_add_tracking()
Register a new conversion tracking.
The rules integration calls this function. Use this to set a custom tracking not related to a entity.
Parameters
integer $conversion_id:
string $label:
string $value:
string $language:
integer $color:
integer $format:
1 string reference to 'google_adwords_add_tracking'
- google_adwords_get_tracking in ./
google_adwords.module - Get defined conversion trackings for this page. Returns only the trackings set by rules or other modules using the function google_adwords_add_tracking().
File
- ./
google_adwords.module, line 217 - Google Adwords Conversion Tracking Module
Code
function google_adwords_add_tracking($conversion_id, $label = NULL, $value = NULL, $language = NULL, $color = NULL, $format = NULL) {
$cache =& drupal_static(__FUNCTION__, array());
$label = $label ? $label : base64_encode($conversion_id);
$language = $language ? $language : 'en';
$color = $color ? $color : 'FFFFFF';
$format = $format ? $format : 1;
$cache[$conversion_id] = array(
'conversion_id' => $conversion_id,
'label' => $label,
'language' => $language,
'color' => $color,
'format' => $format,
'value' => $value,
);
}