You are here

function seotools_dashboard_pageviews_box in Drupal SEO Tools 7

Same name and namespace in other branches
  1. 6 seotools.report.inc \seotools_dashboard_pageviews_box()
1 call to seotools_dashboard_pageviews_box()
seotools_dashboard_page in ./seotools.report.inc

File

./seotools.report.inc, line 1163

Code

function seotools_dashboard_pageviews_box($gid, $siteURL, $date_range, $enabled_modules) {
  $output = '<h3 class="content">' . t('Page views') . '</h3>';
  $links[] = l(t('report'), 'admin/content/seotools/pageviews');
  $links[] = l(t('analytics'), 'https://www.google.com/analytics/reporting/content', array(
    'query' => "id={$gid}",
    'attributes' => array(
      'target' => 'googleanalytics',
    ),
  ));
  $output .= '<div class="dashboard-links">';
  $output .= implode(' | ', $links);
  $output .= '</div>';
  $output .= seotools_generate_report_top_and_trends('pageviews', t('page views'), $mode, $gid, $siteURL, $date_range, $enabled_modules);
  return $output;
}