Skip to content

indentno/trackable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trackable

The easiest way to respect the "do not track" header in Laravel

Installation

composer require s360digital/trackable

API

Trackable will expose the following Blade directives and global helper functions to your Laravel app.

Blade directives

@trackable
  User allows tracking.
  Put Google Tag Manager and other tracking scripts here.
@endtrackable

@untrackable
  User have enabled "do not track" it their browser
@enduntrackable

Global functions

if (trackable()) {
    // User is trackable
}

if (untrackable()) {
    // User have enabled "do not track" it their browser
}

About

🕵🏻‍♂️  The easiest way to respect the "do not track" header in Laravel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages