From 39aa06a6d1f7e4700eb41e22993c17a1e575889b Mon Sep 17 00:00:00 2001 From: Augus Date: Wed, 21 Feb 2024 16:40:17 +0100 Subject: [PATCH 1/2] Add instruction to generate an access token. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9c905ef..e8a3018 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ This package is the official Laravel integration for [Pirsch Analytics](https:// PIRSCH_TOKEN=pa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` +### How to get your access token +1. Go to your [Pirsch Intergration settings](https://dashboard.pirsch.io/settings/integration) page. +2. Make sure that on the top left corner, the correct website/application is selected. +3. Scroll down to the "Clients" section and press the "Add Client" button. +4. In the modal that appears select "Access Key (write-only)" as "Type" and create a proper Description. +5. Press on "Create Client" and copy the generated Client Secret (this is your access token). ## Usage From 5d03511d62e04f62bc01ecba64dad761896f0158 Mon Sep 17 00:00:00 2001 From: Zep Fietje Date: Tue, 5 Mar 2024 12:46:27 +0100 Subject: [PATCH 2/2] Update installation steps --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e8a3018..3abd03f 100644 --- a/README.md +++ b/README.md @@ -12,17 +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 - ``` -### How to get your access token -1. Go to your [Pirsch Intergration settings](https://dashboard.pirsch.io/settings/integration) page. -2. Make sure that on the top left corner, the correct website/application is selected. -3. Scroll down to the "Clients" section and press the "Add Client" button. -4. In the modal that appears select "Access Key (write-only)" as "Type" and create a proper Description. -5. Press on "Create Client" and copy the generated Client Secret (this is your access token). + 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