Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
ezitisitis committed Feb 12, 2023
1 parent a23047e commit ea0ecec
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Laravel social trackers

## Install

First of all- install package.

```bash
composer require ezitisitis/laravel-social-trackers
```

Now populate `services` config with config values:

```php
'google_tag_manager_id' => env('GOOGLE_TAG_MANAGER_ID'),
```

## Usage

Simply put `Tracker::your_desired_tracker` to the `head` section. For example:

```blade
<head>
...
{{\Ezitisitis\LaravelTracking\Tracker::googleTagManager()}}
...
</head>
<body>
{{\Ezitisitis\LaravelTracking\Tracker::googleTagManagerNoScript()}}
...
</body>
```

0 comments on commit ea0ecec

Please sign in to comment.