private function send($type, array $query)
    {

        $client = new Client([
            'base_uri' => 'https://www.google-analytics.com/',
            'timeout'  => 5.0,
        ]);

        // Check if we are in debug mode
        $uri = $this->debug ? '/debug/collect' : '/collect';

        // Submit the hit
        $client->get($uri, [
            'query' => array_merge([

                // Fields referenced from:
                //  https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters

                // Required Fields
                //  https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#required
                'v'   => 1,                     // Protocol Version
                'tid' => $this->tracking_id,    // Google Tracking-ID
                'cid' => $this->getClientID(),  // Unique Client-ID
                't'   => $type,                 // Event

                // Optional Fields
                'aip' => 1,                     // Anonymize the IP of the calling client
                'an'  => 'SeAT',                // App Name

                // Versions of the currently installed packages.
                'av'  => 'api/' . config('api.config.version') . ', ' .
                    'console/' . config('console.config.version') . ', ' .
                    'eveapi/' . config('eveapi.config.version') . ', ' .
                    'notifications/' . config('notifications.config.version') . ', ' .
                    'web/' . config('web.config.version') . ', ' .
                    'services/' . config('services.config.version') . ', ',

                // User Agent is comprised of OS Name(s), Release(r)
                // and Machine Type(m). Examples:
                //  Darwin/15.6.0/x86_64
                //  Linux/2.6.32-642.el6.x86_64/x86_64
                //
                // See:
                //  http://php.net/manual/en/function.php-uname.php
                'ua'  => 'SeAT/' . php_uname('s') .
                    '/' . php_uname('r') .
                    '/' . php_uname('m'),

                'z' => rand(1, 10000),          // Cache Busting Random Value
            ], $query),
        ]);

    }