Method |
Description |
|
cspNonce ( ) : string | null |
returns the current Content Security Policy nonce |
|
disableAutoTracking ( ) : NoAnalytics |
disable auto tracking |
|
disableDisplayFeatures ( ) : NoAnalytics |
disable display features |
|
disableEcommerceTracking ( ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
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 ( ) : NoAnalytics |
enable auto tracking |
|
enableDisplayFeatures ( ) : NoAnalytics |
enable display features |
|
enableEcommerceTracking ( ) : Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
enable ecommerce tracking |
|
enableScriptBlock ( ) |
render script block |
|
nonInteraction ( boolean | null $value = null ) : boolean | Ipunkt\LaravelAnalytics\Contracts\AnalyticsProviderInterface |
sets or gets nonInteraction |
|
render ( ) : string |
returns the javascript code for embedding the analytics stuff |
|
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 | integer $value ) : void |
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 | string $title, null | string $hittype ) : void |
track an page view |
|
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 |
|