Skip to content

ezitisitis/laravel-social-trackers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel social trackers

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages