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 Jan 2, 2024. It is now read-only.
Laravel package to easily send events to Google Analytics
9
+
Laravel package to easily send events to [Google Analytics](https://analytics.google.com/)
10
10
11
11
## Features
12
-
* Use [Laravel Events](https://laravel.com/docs/7.x/events) to track events with Google Analytics
13
-
* All API calls are queued.
12
+
* Use [Laravel Events](https://laravel.com/docs/7.x/events) to track events with GA.
13
+
*[Blade Directive](https://laravel.com/docs/7.x/blade#introduction) to easily store the Client ID.
14
+
* Full access to the [underlying library](https://github.com/theiconic/php-ga-measurement-protocol).
15
+
* API calls to GA are queued.
16
+
* Easy to configure.
14
17
* Compatible with Laravel 6.0 and 7.0.
15
18
* PHP 7.4 required.
16
19
@@ -36,6 +39,24 @@ Set your [Google Analytics Tracking ID](https://support.google.com/analytics/ans
36
39
GOOGLE_ANALYTICS_TRACKING_ID=UA-01234567-89
37
40
```
38
41
42
+
## Blade Directive
43
+
44
+
This package comes with a `@sendAnalyticsClientId` directive that stores the `Client ID` from the GA front-end to your Laravel backend. It uses the [Axios HTTP library](https://github.com/axios/axios) the make an asynchronous POST request. Axios was choosen as it is provided by default in the `resources/js/bootstrap.js` file.
0 commit comments