ezitisitis / laravel-social-trackers
Helper class to setup different trackers faster
1.2.0
2024-08-08 18:34 UTC
Requires
- php: ^7.0||^8.0
- laravel/framework: ^5.6||^6.0||^7.0||^8.0||^9.0||^10||^11
README
Install
First of all- install package.
composer require ezitisitis/laravel-social-trackers
Now populate services
config with config values:
'google_tag_manager_id' => env('GOOGLE_TAG_MANAGER_ID'),
Usage
Simply put Tracker::your_desired_tracker
to the head
section. For example:
<head> ... {{\Ezitisitis\LaravelTracking\Tracker::googleTagManager()}} ... </head> <body> {{\Ezitisitis\LaravelTracking\Tracker::googleTagManagerNoScript()}} ... </body>