Download the PHP package guiassemany/laravel-utm-forwarder without Composer
On this page you can find all versions of the php package guiassemany/laravel-utm-forwarder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download guiassemany/laravel-utm-forwarder
More information about guiassemany/laravel-utm-forwarder
Files in guiassemany/laravel-utm-forwarder
Package laravel-utm-forwarder
Short Description Keeps track of the original UTM parameters
License MIT
Homepage https://github.com/guiassemany/laravel-utm-forwarder
Informations about the package laravel-utm-forwarder
Cross domain analytics is hard. This package helps you to keep track of the visitor's original UTM parameters, referer header and other analytics parameters. You can then submit these parameters along with a form submission or add them to a link to another domain you track.
Installation
You can install the package via composer:
The package works via a middleware that needs to be added to the web
stack in your kernel.php
file. Make sure to register this middleware after the StartSession
middleware.
To configure the tracked parameters or how they're mapped on the URL parameters, you can publish the config file using:
This is the contents of the published config file:
Usage
The easiest way to retrieve the tracked parameters is by resolving the TrackedAnalyticsParameters
class:
You can also decorate an existing URL with the tracked parameters. This is useful to forward analytics to another domain you're running analytics on.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Package built by spatie and Alex Vanderbist and all contributors.
- I've just put it here because I want it to be on packagist and make it available for people who want to use it through composer.
License
The MIT License (MIT). Please see License File for more information.