An open API service indexing awesome lists of open source software.

https://github.com/7span/laravel-google-utm

Laravel package to add Google UTM parameters to URL.
https://github.com/7span/laravel-google-utm

Last synced: about 1 year ago
JSON representation

Laravel package to add Google UTM parameters to URL.

Awesome Lists containing this project

README

          

# Add Google UTM parameters with ease

This package will add Google UTM parameters to any Laravel URL.
This package will also help to add "ref" query string parameter to URL.

### In Your View

```html


{!! GUTM::add( url('/dashboard'), 'logo' ) !!}


{!! GUTM::add( url('/dashboard'), [ 'github' , 'readme' , 'googleUTM' , 'ads' , 'githubRepo' ] ) !!}

```

## Install
First add the package to your composer:
```
{
"require": {
"sevenspan/laravel-google-utm": "dev-master"
}
}
```

You must install a facade, which provides an easy way to call the the class.

```php
// config/app.php
'aliases' => [
...
'GUTM' => Sevenspan\LaravelGoogleUTM\LaravelGoogleUTM::class,
...
];
```
## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.