class GoogleAnalyticsExtension extends Twig_Extension

Class GoogleAnalyticsExtension is injected as empire_google_analytics_plugin.extension service. GoogleAnalyticsExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected GoogleAnalyticsManager $manager
protected GoogleAnalyticsConfig $configCache
protected string $idCache
protected string $trackingCache

Methods

__construct(GoogleAnalyticsManager $manager)

No description

getFunctions()

{@inheritdoc}

mixed
getGoogleAnalyticsToken()

Get google analytics token

string
getGoogleAnalyticsViewId()

Get google analytics param - view id - from cache

string
getGoogleAnalyticsTrackingId()

Get google analytics param - tracking id - from cache

string
getName()

Returns the name of the extension.

Details

at line 44
__construct(GoogleAnalyticsManager $manager)

Parameters

GoogleAnalyticsManager $manager

at line 52
getFunctions()

{@inheritdoc}

at line 65
mixed getGoogleAnalyticsToken()

Get google analytics token

Return Value

mixed

at line 74
string getGoogleAnalyticsViewId()

Get google analytics param - view id - from cache

Return Value

string

at line 93
string getGoogleAnalyticsTrackingId()

Get google analytics param - tracking id - from cache

Return Value

string

at line 113
string getName()

Returns the name of the extension.

Return Value

string The extension name