Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
removed availabilities, because all features are built-in right now
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Sep 5, 2019
1 parent 9e7ec19 commit c805252
Showing 1 changed file with 4 additions and 46 deletions.
50 changes: 4 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@
composer require ipunkt/laravel-analytics
```

Since Laravel supports the auto-discovery feature you do not need to add a provider and an alias. For older Laravel versions you have to do the following:

Add to `providers` in `config/app.php`:

```
Ipunkt\LaravelAnalytics\AnalyticsServiceProvider::class,
```

Add to `aliases` in `config/app.php`:

```
'Analytics' => Ipunkt\LaravelAnalytics\AnalyticsFacade::class,
```
You can use the facade `Analytics`.

To your `.env` add these variables and set them to your liking:

Expand Down Expand Up @@ -138,7 +126,7 @@ For Google Analytics you should place the statement right below the `body` tag

<body>{!! Analytics::render() !!}

### Dependency Injection (since 1.2.0)
### Dependency Injection

You can inject the analytics provider by referencing the interface:

Expand Down Expand Up @@ -365,8 +353,6 @@ This user tracking is implemented at [Google Analytics](https://developers.googl
*/
public function setUserId($userId);

Available since 1.1.4.

### Analytics::unsetUserId()

Context: Controller, Action code
Expand All @@ -380,8 +366,6 @@ Removing of an user id is also possible.
*/
public function unsetUserId();

Available since 1.1.4.

### Analytics::setCampaign($campaign)

Context: Controller, Action code
Expand All @@ -398,8 +382,6 @@ This campaign tracking is documented for [Google Analytics](https://developers.g
*/
public function setCampaign(Campaign $campaign);

Available since 1.2.0.

### Analytics::unsetCampaign()

Context: Controller, Action code
Expand All @@ -413,8 +395,6 @@ Removing of a campaign is also possible.
*/
public function unsetCampaign();

Available since 1.2.0.

### Analytics::enableScriptBlock()

Context: Controller, Action code
Expand All @@ -428,8 +408,6 @@ Enabling the rendering of the `<script>...</script>` block tags. Is enabled by d
*/
public function enableScriptBlock();

Available since 1.2.1.

### Analytics::disableScriptBlock()

Context: Controller, Action code
Expand All @@ -443,8 +421,6 @@ Disabling the rendering of the `<script>...</script>` block tags.
*/
public function disableScriptBlock();

Available since 1.2.1.

### Analytics::enableEcommerceTracking()

Context: Controller, Action code
Expand All @@ -458,8 +434,6 @@ Enabling ecommerce tracking.
*/
public function enableEcommerceTracking();

Available since 1.2.2.

### Analytics::disableEcommerceTracking()

Context: Controller, Action code
Expand All @@ -473,8 +447,6 @@ Disabling ecommerce tracking.
*/
public function disableEcommerceTracking();

Available since 1.2.2.

### Analytics::ecommerceAddTransaction()

Context: Controller, Action code
Expand All @@ -495,9 +467,7 @@ Add ecommerce transaction to tracking code.
*/
public function ecommerceAddTransaction($id, $affiliation = null, $revenue = null, $shipping = null, $tax = null, $currency = null);

Available since 1.2.2. Parameter `$currency` since 1.3.3.

Since version 1.3.3 the [multi currency](https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#multicurrency) tracking is supported with currency values defined [here](https://support.google.com/analytics/answer/6205902#supported-currencies).
The [multi currency](https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#multicurrency) tracking is supported with currency values defined [here](https://support.google.com/analytics/answer/6205902#supported-currencies).

### Analytics::ecommerceAddItem()

Expand All @@ -520,9 +490,7 @@ Add ecommerce item to tracking code.
*/
public function ecommerceAddItem($id, $name, $sku = null, $category = null, $price = null, $quantity = null, $currency = null);

Available since 1.2.2. Parameter `$currency` since 1.3.3.

Since version 1.3.3 the [multi currency](https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#multicurrency) tracking is supported with currency values defined [here](https://support.google.com/analytics/answer/6205902#supported-currencies).
The [multi currency](https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#multicurrency) tracking is supported with currency values defined [here](https://support.google.com/analytics/answer/6205902#supported-currencies).

### Analytics::setCustom()

Expand All @@ -539,8 +507,6 @@ Adds custom settings.
*/
public function setCustom($dimension, $value = null)

Available since 1.2.2.

### Analytics::withCSP()

Context: Controller, Action code
Expand All @@ -554,8 +520,6 @@ Enabling the Content Security Policy feature.
*/
public function withCSP();

Available since 1.3.0.

### Analytics::withoutCSP()

Context: Controller, Action code
Expand All @@ -569,8 +533,6 @@ Disabling the Content Security Policy feature.
*/
public function withoutCSP();

Available since 1.3.0.

### Analytics::cspNonce()

Context: Controller, Action code
Expand All @@ -584,8 +546,6 @@ Returns the nonce generated for the Content Security Policy Header.
*/
public function cspNonce();

Available since 1.3.0.

### Analytics::setOptimizeId()

/**
Expand All @@ -596,5 +556,3 @@ Available since 1.3.0.
* @return AnalyticsProviderInterface
*/
public function setOptimizeId($optimizeId);

Available sind 1.6.0.

0 comments on commit c805252

Please sign in to comment.