public function tracker($name = 'default')
    {
        $key = 'endroid_google_analytics.'.$name;

        if (!$this->container->hasParameter($key)) {
            return '';
        }

        $tracker = $this->container->getParameter($key);
        $tracker['name'] = $name;

        $html = $this->container->get('templating')->render('EndroidGoogleAnalyticsBundle::tracker.html.twig', array('tracker' => $tracker, 'loadGa' => $this->firstTracker));

        $this->firstTracker = false;

        return $html;
    }
public function tracker($name = 'default')
    {
        $key = 'endroid_google_analytics.'.$name;

        if (!$this->container->hasParameter($key)) {
            return '';
        }

        $tracker = $this->container->getParameter($key);
        $tracker['name'] = $name;

        $html = $this->container->get('templating')->render('EndroidGoogleAnalyticsBundle::tracker.html.twig', array('tracker' => $tracker, 'loadGa' => $this->firstTracker));

        $this->firstTracker = false;

        return $html;
    }
public function tracker ( $ name = 'default' ) { $ key = 'endroid_google_analytics.' . $ name ; if ( ! $ this -> container -> hasParameter ( $ key ) ) { return '' ; } $ tracker = $ this -> container -> getParameter ( $ key ) ; $ tracker [ 'name' ] = $ name ; $ html = $ this -> container -> get ( 'templating' ) -> render ( 'EndroidGoogleAnalyticsBundle::tracker.html.twig' , array ( 'tracker' => $ tracker , 'loadGa' => $ this -> firstTracker ) ) ; $ this -> firstTracker = false ; return $ html ; }
Renders the tracker.

@param string $name

@return mixed
Renders the tracker .