Method |
Description |
|
__construct ( array $options = [] ) |
setting options via constructor |
|
cspNonce ( ) : string | null |
returns the current Content Security Policy nonce |
|
disableAutoTracking ( ) : GoogleAnalytics |
disable auto tracking |
|
disableDisplayFeatures ( ) : GoogleAnalytics |
disable display features |
|
disableEcommerceTracking ( ) : GoogleAnalytics |
disable ecommerce tracking |
|
disableScriptBlock ( ) |
do not render script block |
|
ecommerceAddItem ( string $id, string $name, null | string $sku = null, null | string $category = null, null | float $price = null, null | integer $quantity = null ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
ecommerce tracking - add item |
|
ecommerceAddTransaction ( string $id, null | string $affiliation = null, null | float $revenue = null, null | float $shipping = null, null | float $tax = null ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
ecommerce tracking - add transaction |
|
enableAutoTracking ( ) : GoogleAnalytics |
enable auto tracking |
|
enableDisplayFeatures ( ) : GoogleAnalytics |
enable display features |
|
enableEcommerceTracking ( ) : GoogleAnalytics |
enable ecommerce tracking |
|
enableScriptBlock ( ) |
render script block |
|
nonInteraction ( boolean | null $value = null ) : boolean | $this |
sets or gets nonInteraction |
|
render ( ) : string |
returns the javascript embedding code |
|
secureMeasurementUrl ( ) |
use the secured version of the tracking measurement url |
|
setCampaign ( Campaign $campaign ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
sets a campaign |
|
setCustom ( string | array $dimension, null | string $value = null ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
sets custom dimensions |
|
setUserId ( string $userId ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
sets an user id for user tracking |
|
trackCustom ( string $customCode ) : void |
track any custom code |
|
trackEvent ( string $category, string $action, null | string $label = null, null | integer $value = null ) |
track an event |
|
trackMeasurementUrl ( string $metricName, mixed $metricValue, Event $event, Campaign $campaign, string | null $clientId = null, array $params = [] ) : string |
assembles an url for tracking measurement without javascript |
|
trackPage ( null | string $page = null, null | string $title = null, null | string $hittype = null ) : void |
track an page view |
|
unsecureMeasurementUrl ( ) |
make the tracking measurement url insecure |
|
unsetCampaign ( ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
unsets a possible given campaign |
|
unsetUserId ( ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
unsets a possible given user id |
|
withCSP ( ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
enables Content Security Polity and sets nonce |
|
withoutCSP ( ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
disables Content Security Polity |
|