You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-46Lines changed: 4 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,7 @@
8
8
composer require ipunkt/laravel-analytics
9
9
```
10
10
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:
To your `.env` add these variables and set them to your liking:
26
14
@@ -138,7 +126,7 @@ For Google Analytics you should place the statement right below the `body` tag
138
126
139
127
<body>{!! Analytics::render() !!}
140
128
141
-
### Dependency Injection (since 1.2.0)
129
+
### Dependency Injection
142
130
143
131
You can inject the analytics provider by referencing the interface:
144
132
@@ -365,8 +353,6 @@ This user tracking is implemented at [Google Analytics](https://developers.googl
365
353
*/
366
354
public function setUserId($userId);
367
355
368
-
Available since 1.1.4.
369
-
370
356
### Analytics::unsetUserId()
371
357
372
358
Context: Controller, Action code
@@ -380,8 +366,6 @@ Removing of an user id is also possible.
380
366
*/
381
367
public function unsetUserId();
382
368
383
-
Available since 1.1.4.
384
-
385
369
### Analytics::setCampaign($campaign)
386
370
387
371
Context: Controller, Action code
@@ -398,8 +382,6 @@ This campaign tracking is documented for [Google Analytics](https://developers.g
398
382
*/
399
383
public function setCampaign(Campaign $campaign);
400
384
401
-
Available since 1.2.0.
402
-
403
385
### Analytics::unsetCampaign()
404
386
405
387
Context: Controller, Action code
@@ -413,8 +395,6 @@ Removing of a campaign is also possible.
413
395
*/
414
396
public function unsetCampaign();
415
397
416
-
Available since 1.2.0.
417
-
418
398
### Analytics::enableScriptBlock()
419
399
420
400
Context: Controller, Action code
@@ -428,8 +408,6 @@ Enabling the rendering of the `<script>...</script>` block tags. Is enabled by d
428
408
*/
429
409
public function enableScriptBlock();
430
410
431
-
Available since 1.2.1.
432
-
433
411
### Analytics::disableScriptBlock()
434
412
435
413
Context: Controller, Action code
@@ -443,8 +421,6 @@ Disabling the rendering of the `<script>...</script>` block tags.
443
421
*/
444
422
public function disableScriptBlock();
445
423
446
-
Available since 1.2.1.
447
-
448
424
### Analytics::enableEcommerceTracking()
449
425
450
426
Context: Controller, Action code
@@ -458,8 +434,6 @@ Enabling ecommerce tracking.
458
434
*/
459
435
public function enableEcommerceTracking();
460
436
461
-
Available since 1.2.2.
462
-
463
437
### Analytics::disableEcommerceTracking()
464
438
465
439
Context: Controller, Action code
@@ -473,8 +447,6 @@ Disabling ecommerce tracking.
473
447
*/
474
448
public function disableEcommerceTracking();
475
449
476
-
Available since 1.2.2.
477
-
478
450
### Analytics::ecommerceAddTransaction()
479
451
480
452
Context: Controller, Action code
@@ -495,9 +467,7 @@ Add ecommerce transaction to tracking code.
495
467
*/
496
468
public function ecommerceAddTransaction($id, $affiliation = null, $revenue = null, $shipping = null, $tax = null, $currency = null);
497
469
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).
501
471
502
472
### Analytics::ecommerceAddItem()
503
473
@@ -520,9 +490,7 @@ Add ecommerce item to tracking code.
520
490
*/
521
491
public function ecommerceAddItem($id, $name, $sku = null, $category = null, $price = null, $quantity = null, $currency = null);
522
492
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).
526
494
527
495
### Analytics::setCustom()
528
496
@@ -539,8 +507,6 @@ Adds custom settings.
539
507
*/
540
508
public function setCustom($dimension, $value = null)
541
509
542
-
Available since 1.2.2.
543
-
544
510
### Analytics::withCSP()
545
511
546
512
Context: Controller, Action code
@@ -554,8 +520,6 @@ Enabling the Content Security Policy feature.
554
520
*/
555
521
public function withCSP();
556
522
557
-
Available since 1.3.0.
558
-
559
523
### Analytics::withoutCSP()
560
524
561
525
Context: Controller, Action code
@@ -569,8 +533,6 @@ Disabling the Content Security Policy feature.
569
533
*/
570
534
public function withoutCSP();
571
535
572
-
Available since 1.3.0.
573
-
574
536
### Analytics::cspNonce()
575
537
576
538
Context: Controller, Action code
@@ -584,8 +546,6 @@ Returns the nonce generated for the Content Security Policy Header.
0 commit comments