function google_adwords_footer in Google AdWords Conversion Tracking 6
File
- ./
google_adwords.module, line 245
Code
function google_adwords_footer() {
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
}
else {
$node = _google_adwords_empty_node();
}
$google_adwords_footer_script = _google_adwords_view_adwords($node);
if (!empty($google_adwords_footer_script)) {
$google_adwords_google_js = variable_get('google_adwords_external_script', 'https://www.googleadservices.com/pagead/conversion.js');
$google_adwords_footer_script .= '<script language="javaScript" type="text/javascript" src="' . $google_adwords_google_js . '"></script>' . "\n";
return $google_adwords_footer_script;
}
else {
return NULL;
}
}