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

Commit c805252

Browse files
author
rok
committed
removed availabilities, because all features are built-in right now
1 parent 9e7ec19 commit c805252

File tree

1 file changed

+4
-46
lines changed

1 file changed

+4
-46
lines changed

README.md

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,7 @@
88
composer require ipunkt/laravel-analytics
99
```
1010

11-
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:
12-
13-
Add to `providers` in `config/app.php`:
14-
15-
```
16-
Ipunkt\LaravelAnalytics\AnalyticsServiceProvider::class,
17-
```
18-
19-
Add to `aliases` in `config/app.php`:
20-
21-
```
22-
'Analytics' => Ipunkt\LaravelAnalytics\AnalyticsFacade::class,
23-
```
11+
You can use the facade `Analytics`.
2412

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

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

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

141-
### Dependency Injection (since 1.2.0)
129+
### Dependency Injection
142130

143131
You can inject the analytics provider by referencing the interface:
144132

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

368-
Available since 1.1.4.
369-
370356
### Analytics::unsetUserId()
371357

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

383-
Available since 1.1.4.
384-
385369
### Analytics::setCampaign($campaign)
386370

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

401-
Available since 1.2.0.
402-
403385
### Analytics::unsetCampaign()
404386

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

416-
Available since 1.2.0.
417-
418398
### Analytics::enableScriptBlock()
419399

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

431-
Available since 1.2.1.
432-
433411
### Analytics::disableScriptBlock()
434412

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

446-
Available since 1.2.1.
447-
448424
### Analytics::enableEcommerceTracking()
449425

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

461-
Available since 1.2.2.
462-
463437
### Analytics::disableEcommerceTracking()
464438

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

476-
Available since 1.2.2.
477-
478450
### Analytics::ecommerceAddTransaction()
479451

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

498-
Available since 1.2.2. Parameter `$currency` since 1.3.3.
499-
500-
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).
470+
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).
501471

502472
### Analytics::ecommerceAddItem()
503473

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

523-
Available since 1.2.2. Parameter `$currency` since 1.3.3.
524-
525-
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).
493+
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).
526494

527495
### Analytics::setCustom()
528496

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

542-
Available since 1.2.2.
543-
544510
### Analytics::withCSP()
545511

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

557-
Available since 1.3.0.
558-
559523
### Analytics::withoutCSP()
560524

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

572-
Available since 1.3.0.
573-
574536
### Analytics::cspNonce()
575537

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

587-
Available since 1.3.0.
588-
589549
### Analytics::setOptimizeId()
590550

591551
/**
@@ -596,5 +556,3 @@ Available since 1.3.0.
596556
* @return AnalyticsProviderInterface
597557
*/
598558
public function setOptimizeId($optimizeId);
599-
600-
Available sind 1.6.0.

0 commit comments

Comments
 (0)