jgp/tracking

Forward tracking source on Microsites.

v1.1.0 2016-07-05 11:12 UTC

This package is auto-updated.

Last update: 2024-04-16 04:31:32 UTC


README

Add the Tracking Source to a url.

Install

Install the dependency with composer.

composer require jgp/tracking ^1.1

Register the Package in the Microsite Application by editing your config/app.php.

<?php

return [
    'aliases' => [
        ...
        'Track' => 'JGP\Tracking\Facades\Track',
    ],
    
    'providers' => [
        ...
        'JGP\Tracking\TrackingServiceProvider',
    ],
];

Usage

Just pass any url you want to track through the Track::url() method.

<a href="{{ Track::url($url) }}">Tracked link</a>