ezitisitis/laravel-social-trackers

Helper class to setup different trackers faster

1.1.0 2023-02-28 19:43 UTC

This package is auto-updated.

Last update: 2024-04-28 22:14:19 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>