You are here

function google_adwords_page_build in Google AdWords Conversion Tracking 7

Same name and namespace in other branches
  1. 7.2 google_adwords.module \google_adwords_page_build()

Implements hook_page_build().

@todo Do we need a setting to define in which area the code has to appear?

Parameters

array $page:

File

./google_adwords.module, line 254
Google Adwords Conversion Tracking Module

Code

function google_adwords_page_build(&$page) {
  $trackings = google_adwords_get_tracking();
  foreach ($trackings as $tracking) {
    $page['content']['system_main']['google_adwords'][$tracking['conversion_id']]['#markup'] = theme('google_adwords_tracking', $tracking);
  }
}