<?php
/**
 * Yandex PHP Library
 *
 * @copyright NIX Solutions Ltd.
 * @link https://github.com/nixsolutions/yandex-php-library
 */

/**
 * @namespace
 */
namespace Yandex\Metrica\Analytics;

use Yandex\Metrica\MetricaClient;

class AnalyticsClient extends MetricaClient
{
    /**
     * API domain
     *
     * @var string
     */
    protected $serviceDomain = 'beta.api-metrika.yandex.ru/analytics/v3/data';


    public function ga()
    {
        return new GaClient();
    }
}

<?php
/**
 * Yandex PHP Library
 *
 * @copyright NIX Solutions Ltd.
 * @link https://github.com/nixsolutions/yandex-php-library
 */

/**
 * @namespace
 */
namespace Yandex\Metrica\Analytics;

use Yandex\Metrica\MetricaClient;

class AnalyticsClient extends MetricaClient
{
    /**
     * API domain
     *
     * @var string
     */
    protected $serviceDomain = 'beta.api-metrika.yandex.ru/analytics/v3/data';


    public function ga()
    {
        return new GaClient($this->getAccessToken());
    }
}

Fix token setting on create new GaClient instance
Fix token setting on create new GaClient instance
