function a360_show_ga_auth_error($message, $errors = '') { $config_warnings = a360_config_warnings(); a360_warning_box($message, $errors, $config_warnings); }
$profile_options[] = '<option value="' . $id . '"' . ($a360_ga_profile_id == $id ? 'selected="selected"' : '') . '>' . $profile['title'] . '</option>'; } } } } } } } ?> <h3 id="a360-connect-to-google-head" class="a360-subhead<?php echo !empty($a360_ga_token) ? ' complete' : ''; ?> ">Connect to Google Analytics</h3> <?php $config_warnings = a360_config_warnings(); if (empty($a360_ga_token)) { // no token if (isset($_GET['a360_ga_token_capture_errors'])) { // when the attempt to get token fails. most likely point of failure initially. a360_show_ga_auth_error('Whoops! <strong>We did not get an authorization token back from Google</strong>.', $_GET['a360_ga_token_capture_errors']); } else { if (!empty($config_warnings)) { // have config warnings only a360_warning_box('Possible Server Configuration Problem', null, $config_warnings); } } ?> <p><strong>Authenticate with Google.</strong></p> <p>Follow this link to be taken to Google's authentication page. After logging in there, you will be returned to Analytics360°.</p>