ezitisitis/laravel-social-trackers

Helper class to setup different trackers faster

1.2.0 2024-08-08 18:34 UTC

This package is auto-updated.

Last update: 2024-11-08 19:21:56 UTC


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>

Credits