src/TagPlanet/UniversalAnalytics/UniversalAnalytics.php
protected function create($account, $config = array())
    {
        if(!isset($config['name']))
        {
            // This shouldn't happen anymore... but just in case, force it!
            $config['name'] = 't' . count($this->instances);
        }
        
        // Grab overall config options
        $debug = $this->debug;
        $autoPageview = $this->autoPageview;
        
        // Finally, make a new instance
        $this->instances[$config['name']] = new UniversalAnalyticsInstance($account, $config, $debug, $autoPageview);
        
        // Return the newly created instance
        return $this->instances[$config['name']];
    }
protected function create($account, $config = array())
    {
        if(!isset($config['name']))
        {
            // This shouldn't happen anymore... but just in case, force it!
            $config['name'] = 't' . count($this->instances);
        }
        
        // Grab overall config options
        $debug = $this->debug;
        $autoPageview = $this->autoPageview;
        
        // Finally, make a new instance
        $this->instances[$config['name']] = new UniversalAnalyticsInstance($account, $config, $debug, $autoPageview);
        
        // Return the newly created instance
        return $this->instances[$config['name']];
    }
protected function create ( $ account , $ config = array ( ) ) { if ( ! isset ( $ config [ 'name' ] ) ) { // This shouldn't happen anymore... but just in case, force it! $ config [ 'name' ] = 't' . count ( $ this -> instances ) ; } // Grab overall config options $ debug = $ this -> debug ; $ autoPageview = $ this -> autoPageview ; // Finally, make a new instance $ this -> instances [ $ config [ 'name' ] ] = new UniversalAnalyticsInstance ( $ account , $ config , $ debug , $ autoPageview ) ; // Return the newly created instance return $ this -> instances [ $ config [ 'name' ] ] ; }
Create a new tracker instance, or update an existing a new config

@return TagPlanet\UniversalAnalytics\UniversalAnalyticsInstance
Create a new tracker instance or update an existing a new config