You are here

function google_adwords_path_page_build in Google AdWords Conversion Tracking 7.2

Implements hook_page_build().

This adds the tracking code into the page between the body tags.

File

modules/google_adwords_path/google_adwords_path.module, line 64
Module file for the Google Adwords Path Submodule.

Code

function google_adwords_path_page_build(&$page) {
  $codes = google_adwords_path_get_path_codes();
  if (count($codes)) {
    foreach ($codes as $code) {
      $markup = theme('google_adwords', $code);
      $page['page_bottom']['google_adwords_path'] = array(
        '#weight' => 55,
        '#markup' => $markup,
      );
    }
  }
}