indentno/trackable

Blade directive for do not track header

Maintainers

Package info

github.com/indentno/trackable

pkg:composer/indentno/trackable

Statistics

Installs: 176

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.0.4 2022-08-17 06:52 UTC

This package is not auto-updated.

Last update: 2026-02-26 21:54:36 UTC


README

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
}