Skip to content

Commit

Permalink
Merge pull request #4 from Autive/master
Browse files Browse the repository at this point in the history
Add instruction to generate an access token.
  • Loading branch information
zepfietje authored Mar 5, 2024
2 parents f539168 + 5d03511 commit e918ffb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ This package is the official Laravel integration for [Pirsch Analytics](https://
composer require pirsch-analytics/laravel-pirsch
```
2. Add the Pirsch access token to your `.env` file. Leave it empty in non-production environments to disable tracking:
```bash
# ...

PIRSCH_TOKEN=pa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
1. Visit the [Pirsch "Integration" settings page](https://dashboard.pirsch.io/settings/integration).
2. Make sure the correct domain is selected in the top left corner of the page.
3. Scroll down to the "Clients" section and press the "Add Client" button.
4. Select "Access Key (write-only)" as type and enter a description.
5. Press the "Create Client" button and copy the generated "Client secret".
6. Add the copied token to your `.env` file:

```bash
# ...

PIRSCH_TOKEN=pa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

## Usage

Expand Down

0 comments on commit e918ffb

Please sign in to comment.