GOOGLE_CLIENT_ID, 'redirect_uri' => GOOGLE_REDIRECT_URI, 'response_type' => 'code', 'scope' => 'https://www.googleapis.com/auth/analytics.readonly', 'access_type' => 'offline', 'prompt' => 'consent' ]); header('Location: ' . $auth_url); exit();