PHP Class Craft\IAnalytics

Inheritance: extends TheIconic\Tracking\GoogleAnalytics\Analytics
Afficher le fichier Open project: nystudio107/instantanalytics Class Usage Examples

Protected Properties

Свойство Type Description
$shouldSendAnalytics

Méthodes publiques

Méthode Description
__construct ( boolean $isSsl = false ) Override __construct() to store whether or not we should be sending Analytics data
__toString ( ) : string Turn an empty value so the twig tags {{ }} can be used
addCommerceCheckoutStep ( $orderModel = null, $step = 1, $option = "" ) Add a checkout step to the Analytics object
addCommerceProductDetailView ( $productVariant = null ) Add a product detail view to the Analytics object
addCommerceProductImpression ( $productVariant = null, integer $index, $listName = "" ) Add a product impression to the Analytics object

Private Methods

Méthode Description
sendHit ( $methodName ) : AnalyticsResponse Override sendHit() so that we can prevent Analytics data from being sent

Method Details

__construct() public méthode

Override __construct() to store whether or not we should be sending Analytics data
public __construct ( boolean $isSsl = false )
$isSsl boolean

__toString() public méthode

Turn an empty value so the twig tags {{ }} can be used
public __toString ( ) : string
Résultat string ""

addCommerceCheckoutStep() public méthode

Add a checkout step to the Analytics object
public addCommerceCheckoutStep ( $orderModel = null, $step = 1, $option = "" )

addCommerceProductDetailView() public méthode

Add a product detail view to the Analytics object
public addCommerceProductDetailView ( $productVariant = null )

addCommerceProductImpression() public méthode

Add a product impression to the Analytics object
public addCommerceProductImpression ( $productVariant = null, integer $index, $listName = "" )
$index integer Where the product appears in the list

Property Details

$shouldSendAnalytics protected_oe property

protected $shouldSendAnalytics