-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1920 from acelaya-forks/feature/matomo-integration
Feature/matomo integration
- Loading branch information
Showing
26 changed files
with
744 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Shlinkio\Shlink\Core\Config\EnvVars; | ||
|
||
return [ | ||
|
||
'matomo' => [ | ||
'enabled' => (bool) EnvVars::MATOMO_ENABLED->loadFromEnv(false), | ||
'base_url' => EnvVars::MATOMO_BASE_URL->loadFromEnv(), | ||
'site_id' => EnvVars::MATOMO_SITE_ID->loadFromEnv(), | ||
'api_token' => EnvVars::MATOMO_API_TOKEN->loadFromEnv(), | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* Dev matomo instance needs to be manually configured once before enabling the configuration below. | ||
* | ||
* 1. Go to http://localhost:8003 and follow the installation instructions. | ||
* 2. Open data/infra/matomo/config/config.ini.php and replace `trusted_hosts[] = "localhost"` with | ||
* `trusted_hosts[] = "localhost:8003"` (see https://github.com/matomo-org/matomo/issues/9549) | ||
* 3. Go to http://localhost:8003/index.php?module=SitesManager&action=index and paste the ID for the site you just | ||
* created into the `site_id` field below. | ||
* 4. Go to http://localhost:8003/index.php?module=UsersManager&action=userSecurity, scroll down, click | ||
* "Create new token" and once generated, paste the token into the `api_token` field below. | ||
*/ | ||
|
||
return [ | ||
|
||
'matomo' => [ | ||
// 'enabled' => true, | ||
// 'base_url' => 'http://shlink_matomo', | ||
// 'site_id' => '...', | ||
// 'api_token' => '...', | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.