PHP Class Arcanedev\SeoHelper\Entities\Analytics

Author: ARCANEDEV ([email protected])
Inheritance: implements Arcanedev\SeoHelper\Contracts\Entities\Analytics, use trait Arcanedev\Support\Traits\Configurable
Show file Open project: arcanedev/seo-helper

Protected Properties

Property Type Description
$google string Google Analytics code.

Public Methods

Method Description
__construct ( array $configs = [] ) Make an Analytics instance.
__toString ( ) : string Render the tag.
render ( ) : string Render the tag.
setGoogle ( string $code ) : Analytics Set Google Analytics code.

Protected Methods

Method Description
renderGoogleScript ( ) : string Render the Google Analytics tracking script.

Method Details

__construct() public method

Make an Analytics instance.
public __construct ( array $configs = [] )
$configs array

__toString() public method

Render the tag.
public __toString ( ) : string
return string

render() public method

Render the tag.
public render ( ) : string
return string

renderGoogleScript() protected method

Render the Google Analytics tracking script.
protected renderGoogleScript ( ) : string
return string

setGoogle() public method

Set Google Analytics code.
public setGoogle ( string $code ) : Analytics
$code string
return Analytics

Property Details

$google protected property

Google Analytics code.
protected string $google
return string