GoogleAnalyticsExtension
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
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)
at line 52
getFunctions()
{@inheritdoc}
at line 65
mixed
getGoogleAnalyticsToken()
Get google analytics token
at line 74
string
getGoogleAnalyticsViewId()
Get google analytics param - view id - from cache
at line 93
string
getGoogleAnalyticsTrackingId()
Get google analytics param - tracking id - from cache
at line 113
string
getName()
Returns the name of the extension.