GoogleAnalyticsConfigurationReadService
in package
implements
GoogleAnalyticsConfigurationReadServiceInterface
Class GoogleAnalyticsConfigurationReadService
Interfaces, Classes and Traits
- GoogleAnalyticsConfigurationReadServiceInterface
- Interface GoogleAnalyticsConfigurationReadServiceInterface
Table of Contents
- $storage : GoogleConfigurationStorage
- __construct() : mixed
- GoogleAnalyticsConfigurationReadService constructor.
- analyticsFileName() : string
- Returns the file name of the given analytics file type.
- enabled() : bool
- Is true if google analytics is enabled.
- ipAnonymizationEnabled() : bool
- Is true if ip anonymization is enabled.
- isDevModeEnabled() : bool
- Determines if dev mode is enabled.
- isInstalled() : bool
- Checks if the google_configurations table exists.
- listName() : string
- Returns the list name of the given impression type.
- newAnalyticsFileName() : string
- Creates a new file name of the given analytics file type and returns it.
- trackingEnabled() : bool
- Is true if the given tracking configuration is enabled.
- trackNetPrices() : bool
- Checks if prices should be tracked as net or gross, true if net.
- uaTrackingCode() : string
- Returns the universal analytics tracking code.
Properties
$storage
protected
GoogleConfigurationStorage
$storage
Methods
__construct()
GoogleAnalyticsConfigurationReadService constructor.
public
__construct(GoogleConfigurationStorage $storage) : mixed
Parameters
- $storage : GoogleConfigurationStorage
Return values
mixed —analyticsFileName()
Returns the file name of the given analytics file type.
public
analyticsFileName(GoogleAnalyticsJsFileInterface $fileType) : string
Parameters
- $fileType : GoogleAnalyticsJsFileInterface
-
Analytics file type.
Return values
string —enabled()
Is true if google analytics is enabled.
public
enabled() : bool
Return values
bool —ipAnonymizationEnabled()
Is true if ip anonymization is enabled.
public
ipAnonymizationEnabled() : bool
Return values
bool —isDevModeEnabled()
Determines if dev mode is enabled.
public
isDevModeEnabled() : bool
Return values
bool —isInstalled()
Checks if the google_configurations table exists.
public
isInstalled() : bool
Return values
bool —listName()
Returns the list name of the given impression type.
public
listName(GoogleAnalyticsImpressionTypeInterface $impressionType) : string
Parameters
- $impressionType : GoogleAnalyticsImpressionTypeInterface
-
Impression type.
Return values
string —List name of given impression type.
newAnalyticsFileName()
Creates a new file name of the given analytics file type and returns it.
public
newAnalyticsFileName(GoogleAnalyticsJsFileInterface $fileType) : string
Parameters
- $fileType : GoogleAnalyticsJsFileInterface
-
Analytics file type.
Return values
string —trackingEnabled()
Is true if the given tracking configuration is enabled.
public
trackingEnabled(GoogleAnalyticsTrackingInterface $tracking) : bool
Parameters
- $tracking : GoogleAnalyticsTrackingInterface
Return values
bool —trackNetPrices()
Checks if prices should be tracked as net or gross, true if net.
public
trackNetPrices() : bool
Return values
bool —True if prices should be tracked as net and false if they should be tracked as gross.
uaTrackingCode()
Returns the universal analytics tracking code.
public
uaTrackingCode() : string